API: container: Remove gtk_container_set_border_width()
authorBenjamin Otte <otte@redhat.com>
Sun, 9 Oct 2016 00:32:00 +0000 (02:32 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Oct 2016 16:18:58 +0000 (18:18 +0200)
160 files changed:
demos/gtk-demo/assistant.c
demos/gtk-demo/blendmodes.ui
demos/gtk-demo/button_box.c
demos/gtk-demo/changedisplay.c
demos/gtk-demo/clipboard.c
demos/gtk-demo/colorsel.c
demos/gtk-demo/combobox.c
demos/gtk-demo/dialog.c
demos/gtk-demo/drawingarea.c
demos/gtk-demo/editable_cells.c
demos/gtk-demo/entry_buffer.c
demos/gtk-demo/entry_completion.c
demos/gtk-demo/glarea.c
demos/gtk-demo/hypertext.c
demos/gtk-demo/images.c
demos/gtk-demo/infobar.c
demos/gtk-demo/links.c
demos/gtk-demo/list_store.c
demos/gtk-demo/menus.c
demos/gtk-demo/offscreen_window.c
demos/gtk-demo/offscreen_window2.c
demos/gtk-demo/panes.c
demos/gtk-demo/pickers.c
demos/gtk-demo/popover.c
demos/gtk-demo/revealer.ui
demos/gtk-demo/scale.ui
demos/gtk-demo/search_entry.c
demos/gtk-demo/search_entry2.c
demos/gtk-demo/sizegroup.c
demos/gtk-demo/spinner.c
demos/gtk-demo/textview.c
demos/gtk-demo/theming_style_classes.c
demos/gtk-demo/toolpalette.c
demos/gtk-demo/transparent.c
demos/gtk-demo/tree_store.c
demos/widget-factory/widget-factory.ui
docs/reference/gtk/gtk4-sections.txt
docs/tools/widgets.c
examples/action-namespace.c
examples/builder.ui
examples/drawing.c
examples/grid-packing.c
examples/plugman.c
gtk/deprecated/gtkalignment.c
gtk/deprecated/gtktable.c
gtk/gtk-builder-tool.c
gtk/gtkappchooserdialog.c
gtk/gtkapplicationwindow.c
gtk/gtkbbox.c
gtk/gtkbin.c
gtk/gtkbox.c
gtk/gtkbuilder.c
gtk/gtkbutton.c
gtk/gtkcombobox.c
gtk/gtkcontainer.c
gtk/gtkcontainer.h
gtk/gtkcontainerprivate.h
gtk/gtkcustompaperunixdialog.c
gtk/gtkdialog.c
gtk/gtkentry.c
gtk/gtkeventbox.c
gtk/gtkfilechooserwidget.c
gtk/gtkfixed.c
gtk/gtkflowbox.c
gtk/gtkframe.c
gtk/gtkgrid.c
gtk/gtkheaderbar.c
gtk/gtkmenu.c
gtk/gtkmenubar.c
gtk/gtkmenuitem.c
gtk/gtkmessagedialog.c
gtk/gtkmountoperation.c
gtk/gtknotebook.c
gtk/gtkoffscreenwindow.c
gtk/gtkpaned.c
gtk/gtkpathbar.c
gtk/gtkplacesview.c
gtk/gtkpopover.c
gtk/gtkrecentchooserdialog.c
gtk/gtkscrolledwindow.c
gtk/gtkshortcutssection.c
gtk/gtkshortcutswindow.c
gtk/gtkspinbutton.c
gtk/gtkstack.c
gtk/gtktextview.c
gtk/gtktoolbar.c
gtk/gtktoolitem.c
gtk/gtktoolitemgroup.c
gtk/gtktoolpalette.c
gtk/gtktreeview.c
gtk/gtkviewport.c
gtk/gtkwindow.c
gtk/ui/gtkaboutdialog.ui
gtk/ui/gtkcolorchooserdialog.ui
gtk/ui/gtkdialog.ui
gtk/ui/gtkfilechooserdialog.ui
gtk/ui/gtkfilechooserwidget.ui
gtk/ui/gtkfontchooserdialog.ui
gtk/ui/gtkinfobar.ui
gtk/ui/gtkmessagedialog.ui
gtk/ui/gtkpagesetupunixdialog.ui
gtk/ui/gtkplacesview.ui
gtk/ui/gtkprintunixdialog.ui
gtk/ui/gtksearchbar.ui
tests/gdkgears.c
tests/gtkoffscreenbox.c
tests/print-editor.c
tests/simple.c
tests/testadjustsize.c
tests/testanimation.c
tests/testappchooser.c
tests/testappchooserbutton.c
tests/testcalendar.c
tests/testcellrenderertext.c
tests/testcombo.c
tests/testcombochange.c
tests/testellipsise.c
tests/testemblems.c
tests/testentrycompletion.c
tests/testentryicons.c
tests/testfilechooserbutton.c
tests/testflowbox.c
tests/testfontoptions.c
tests/testframe.c
tests/testglarea.c
tests/testglblending.c
tests/testgtk.c
tests/testheightforwidth.c
tests/testkineticscrolling.c
tests/testlockbutton.c
tests/testmenubutton.c
tests/testmerge.c
tests/testmultidisplay.c
tests/testnotebookdnd.c
tests/testrichtext.c
tests/testscrolledwindow.c
tests/testselection.c
tests/testswitch.c
tests/testtoolbar.c
tests/testtooltips.c
tests/testtreecolumns.c
tests/testtreecolumnsizing.c
tests/testtreeflow.c
tests/testtreefocus.c
tests/testtreesort.c
tests/testwindowsize.c
tests/treestoretest.c
testsuite/gtk/builder.c
testsuite/reftests/background-area.ref.ui
testsuite/reftests/background-area.ui
testsuite/reftests/background-image-multiple.ref.ui
testsuite/reftests/background-image-multiple.ui
testsuite/reftests/background-origin.ui
testsuite/reftests/info-bar-message-types.ui
testsuite/reftests/messagedialog-secondarytext.ref.ui
testsuite/reftests/messagedialog-secondarytext.ui
testsuite/reftests/window-border-width.ref.ui
testsuite/reftests/window-border-width.ui
testsuite/reftests/window-height-for-width.ref.ui
testsuite/reftests/window-height-for-width.ui

index 22b19bc82920e03a02020a7cf7c875f8f31483d9..22b2cb4ae959f3f4f07eafe37581f577403f50ae 100644 (file)
@@ -94,7 +94,6 @@ create_page1 (GtkWidget *assistant)
   GtkWidget *box, *label, *entry;
 
   box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
-  gtk_container_set_border_width (GTK_CONTAINER (box), 12);
 
   label = gtk_label_new ("You must fill out this entry to continue:");
   gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE);
@@ -118,7 +117,6 @@ create_page2 (GtkWidget *assistant)
   GtkWidget *box, *checkbutton;
 
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
-  gtk_container_set_border_width (GTK_CONTAINER (box), 12);
 
   checkbutton = gtk_check_button_new_with_label ("This is optional data, you may continue "
                                                  "even if you do not check this");
index 02dc7365035c85687d26eb5ecb2a83e422c76b79..fb5b5b754115f9b5214488342411a134dedc8ef9 100644 (file)
@@ -11,7 +11,6 @@
       <object class="GtkGrid">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
-        <property name="border_width">12</property>
         <property name="row_spacing">12</property>
         <property name="column_spacing">12</property>
         <child>
index be4e03353d3d6389c561bd226348df2cb199b68c..d5182b08a1e740c5e4a6e0c628be641bd82a75ba 100644 (file)
@@ -23,7 +23,6 @@ create_bbox (gint  horizontal,
   else
     bbox = gtk_button_box_new (GTK_ORIENTATION_VERTICAL);
 
-  gtk_container_set_border_width (GTK_CONTAINER (bbox), 5);
   gtk_container_add (GTK_CONTAINER (frame), bbox);
 
   gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), layout);
@@ -62,8 +61,6 @@ do_button_box (GtkWidget *do_widget)
                       G_CALLBACK (gtk_widget_destroyed),
                       &window);
 
-    gtk_container_set_border_width (GTK_CONTAINER (window), 10);
-
     main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
     gtk_container_add (GTK_CONTAINER (window), main_vbox);
 
@@ -73,7 +70,6 @@ do_button_box (GtkWidget *do_widget)
     gtk_box_pack_start (GTK_BOX (main_vbox), frame_horz, TRUE, TRUE);
 
     vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-    gtk_container_set_border_width (GTK_CONTAINER (vbox), 10);
     gtk_container_add (GTK_CONTAINER (frame_horz), vbox);
 
     gtk_box_pack_start (GTK_BOX (vbox),
@@ -104,7 +100,6 @@ do_button_box (GtkWidget *do_widget)
     gtk_box_pack_start (GTK_BOX (main_vbox), frame_vert, TRUE, TRUE);
 
     hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
-    gtk_container_set_border_width (GTK_CONTAINER (hbox), 10);
     gtk_container_add (GTK_CONTAINER (frame_vert), hbox);
 
     gtk_box_pack_start (GTK_BOX (hbox),
index c8a4487eaf58212815f7d0460f1b38ff7fded8ab..6a066e2fc2edb6d953b9b211d100d3afd829aaae 100644 (file)
@@ -305,7 +305,6 @@ create_frame (ChangeDisplayInfo *info,
   *frame = gtk_frame_new (title);
 
   hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
-  gtk_container_set_border_width (GTK_CONTAINER (hbox), 8);
   gtk_container_add (GTK_CONTAINER (*frame), hbox);
 
   scrollwin = gtk_scrolled_window_new (NULL, NULL);
@@ -539,7 +538,6 @@ do_changedisplay (GtkWidget *do_widget)
       content_area = gtk_dialog_get_content_area (GTK_DIALOG (info->window));
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
       gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE);
 
       frame = create_display_frame (info);
index 8e31c5185bd0926a6c6f41f76dd4ed61730798c4..e3ca3ea942bb0ec55d678a9168875df116574535 100644 (file)
@@ -219,7 +219,6 @@ do_clipboard (GtkWidget *do_widget)
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
 
       gtk_container_add (GTK_CONTAINER (window), vbox);
 
@@ -228,7 +227,6 @@ do_clipboard (GtkWidget *do_widget)
       gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
-      gtk_container_set_border_width (GTK_CONTAINER (hbox), 8);
       gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
 
       /* Create the first entry */
@@ -245,7 +243,6 @@ do_clipboard (GtkWidget *do_widget)
       gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
-      gtk_container_set_border_width (GTK_CONTAINER (hbox), 8);
       gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
 
       /* Create the second entry */
@@ -262,7 +259,6 @@ do_clipboard (GtkWidget *do_widget)
       gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE);
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
-      gtk_container_set_border_width (GTK_CONTAINER (hbox), 8);
       gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
 
       /* Create the first image */
index 4df48b634f012dd35da083e0f21ba86b31c76f57..b75bb26a0266eec795724a63986e4424dabe4aab 100644 (file)
@@ -74,10 +74,7 @@ do_colorsel (GtkWidget *do_widget)
       g_signal_connect (window, "destroy",
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
-      gtk_container_set_border_width (GTK_CONTAINER (window), 8);
-
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
       gtk_container_add (GTK_CONTAINER (window), vbox);
 
       /*
index 09d50e49cbf2027ae2e655d200f24c849b025d9b..6ebac749a3f4f0e5503ae88031d8cc6bd0b71b76 100644 (file)
@@ -318,8 +318,6 @@ do_combobox (GtkWidget *do_widget)
     g_signal_connect (window, "destroy",
                       G_CALLBACK (gtk_widget_destroyed), &window);
 
-    gtk_container_set_border_width (GTK_CONTAINER (window), 10);
-
     vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
     gtk_container_add (GTK_CONTAINER (window), vbox);
 
@@ -330,7 +328,6 @@ do_combobox (GtkWidget *do_widget)
     gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
 
     box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-    gtk_container_set_border_width (GTK_CONTAINER (box), 5);
     gtk_container_add (GTK_CONTAINER (frame), box);
 
     model = create_icon_store ();
@@ -371,7 +368,6 @@ do_combobox (GtkWidget *do_widget)
     gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
 
     box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-    gtk_container_set_border_width (GTK_CONTAINER (box), 5);
     gtk_container_add (GTK_CONTAINER (frame), box);
 
     model = create_capital_store ();
@@ -399,7 +395,6 @@ do_combobox (GtkWidget *do_widget)
     gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
 
     box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-    gtk_container_set_border_width (GTK_CONTAINER (box), 5);
     gtk_container_add (GTK_CONTAINER (frame), box);
 
     combo = gtk_combo_box_text_new_with_entry ();
@@ -417,7 +412,6 @@ do_combobox (GtkWidget *do_widget)
     gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
 
     box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-    gtk_container_set_border_width (GTK_CONTAINER (box), 5);
     gtk_container_add (GTK_CONTAINER (frame), box);
 
     combo = gtk_combo_box_text_new ();
index a63251971755971fbd67851d70d439a593222d50..362e27e1f60839e5b676518e9799105dc1948c04 100644 (file)
@@ -56,7 +56,6 @@ interactive_dialog_clicked (GtkButton *button,
   content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
 
   hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
-  gtk_container_set_border_width (GTK_CONTAINER (hbox), 8);
   gtk_box_pack_start (GTK_BOX (content_area), hbox, FALSE, FALSE);
 
   image = gtk_image_new_from_icon_name ("dialog-question", GTK_ICON_SIZE_DIALOG);
@@ -114,13 +113,10 @@ do_dialog (GtkWidget *do_widget)
       g_signal_connect (window, "destroy",
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
-      gtk_container_set_border_width (GTK_CONTAINER (window), 8);
-
       frame = gtk_frame_new ("Dialogs");
       gtk_container_add (GTK_CONTAINER (window), frame);
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
       gtk_container_add (GTK_CONTAINER (frame), vbox);
 
       /* Standard message dialog */
index 8023bb3423178b8b4fcd93033740d51c7d448bda..ac031330f0c5547a6776dfc264b19b2d04df7f04 100644 (file)
@@ -215,10 +215,7 @@ do_drawingarea (GtkWidget *do_widget)
       g_signal_connect (window, "destroy",
                         G_CALLBACK (close_window), NULL);
 
-      gtk_container_set_border_width (GTK_CONTAINER (window), 8);
-
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
       gtk_container_add (GTK_CONTAINER (window), vbox);
 
       /*
index d6acc49eb7bd45b830274ef4343b2cfc2f5ec3b0..770091bdc5a512e64741a9c96c12177169adc233 100644 (file)
@@ -349,7 +349,6 @@ do_editable_cells (GtkWidget *do_widget)
       gtk_window_set_screen (GTK_WINDOW (window),
                              gtk_widget_get_screen (do_widget));
       gtk_window_set_title (GTK_WINDOW (window), "Editable Cells");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 5);
       g_signal_connect (window, "destroy",
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
index ef3e15ee3e7899d5c38bc8358cf3c23c9371d370..7e7094d21a68dc34bbbb780d84a90e74ac94d2b1 100644 (file)
@@ -29,7 +29,6 @@ do_entry_buffer (GtkWidget *do_widget)
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
       gtk_container_add (GTK_CONTAINER (window), vbox);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
 
       label = gtk_label_new (NULL);
       gtk_label_set_markup (GTK_LABEL (label),
index 0ca4cbe5ac3f6d362f4b59b80f2f8ef0806f6d36..c3bee99de1acb347131f95ee0c1f884bab0cb32e 100644 (file)
@@ -56,7 +56,6 @@ do_entry_completion (GtkWidget *do_widget)
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
       gtk_container_add (GTK_CONTAINER (window), vbox);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
 
       label = gtk_label_new (NULL);
       gtk_label_set_markup (GTK_LABEL (label), "Completion demo, try writing <b>total</b> or <b>gnome</b> for example.");
index b51e4ae1fe9aad918fbfc484f563545501b7a063..51b848dce02034599ca9b21dc39820ad77eab6de 100644 (file)
@@ -393,7 +393,6 @@ create_glarea_window (GtkWidget *do_widget)
   gtk_window_set_screen (GTK_WINDOW (window), gtk_widget_get_screen (do_widget));
   gtk_window_set_title (GTK_WINDOW (window), "OpenGL Area");
   gtk_window_set_default_size (GTK_WINDOW (window), 400, 600);
-  gtk_container_set_border_width (GTK_CONTAINER (window), 12);
   g_signal_connect (window, "destroy", G_CALLBACK (close_window), NULL);
 
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE);
index 4a221d8b9d1ac317ce6e5f2d534c20a8e7a376dc..0aa1b2349c1da97a2c065ba3c10637f08743f211 100644 (file)
@@ -268,8 +268,6 @@ do_hypertext (GtkWidget *do_widget)
       g_signal_connect (window, "destroy",
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
-
       view = gtk_text_view_new ();
       gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (view), GTK_WRAP_WORD);
       gtk_text_view_set_left_margin (GTK_TEXT_VIEW (view), 20);
index a3e9c7a0a69b41bd1645bc48fb58261007bcf4e2..eecb72849eb547bcf728ab4fd21008a72c90faa3 100644 (file)
@@ -347,10 +347,7 @@ do_images (GtkWidget *do_widget)
       g_signal_connect (window, "destroy",
                         G_CALLBACK (cleanup_callback), NULL);
 
-      gtk_container_set_border_width (GTK_CONTAINER (window), 8);
-
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
       gtk_container_add (GTK_CONTAINER (window), vbox);
 
       label = gtk_label_new (NULL);
index 62df74f27abc9011e46e5f8a4d98d515f06ab2c1..8dbea04c7f5e6b57bc8551784e12539239733a32 100644 (file)
@@ -59,7 +59,6 @@ do_infobar (GtkWidget *do_widget)
       gtk_window_set_title (GTK_WINDOW (window), "Info Bars");
 
       g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window);
-      gtk_container_set_border_width (GTK_CONTAINER (window), 8);
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
       gtk_container_add (GTK_CONTAINER (window), vbox);
@@ -132,7 +131,6 @@ do_infobar (GtkWidget *do_widget)
       gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
 
       vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox2), 8);
       gtk_container_add (GTK_CONTAINER (frame), vbox2);
 
       /* Standard message dialog */
index 5a39a1a84268ef251027b1e572d18ee68771b32e..c896656ffd356f42758d37af639c859a167d361a 100644 (file)
@@ -56,7 +56,6 @@ do_links (GtkWidget *do_widget)
       gtk_window_set_screen (GTK_WINDOW (window),
                              gtk_widget_get_screen (do_widget));
       gtk_window_set_title (GTK_WINDOW (window), "Links");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 12);
       g_signal_connect (window, "destroy",
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
index db065edb4458480b7ab97f6ad124d79057879d15..2fa12ce4af2ec3f858b6b3ad5f5ec10174f7a0a3 100644 (file)
@@ -262,7 +262,6 @@ do_list_store (GtkWidget *do_widget)
 
       g_signal_connect (window, "destroy",
                         G_CALLBACK (gtk_widget_destroyed), &window);
-      gtk_container_set_border_width (GTK_CONTAINER (window), 8);
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
       gtk_container_add (GTK_CONTAINER (window), vbox);
index 5537751e875b1823a53d92f12bf3a3cc1ba70e44..9fdd35350cd1ea54440896c1fed4695cacdb922b 100644 (file)
@@ -105,8 +105,6 @@ do_menus (GtkWidget *do_widget)
       accel_group = gtk_accel_group_new ();
       gtk_window_add_accel_group (GTK_WINDOW (window), accel_group);
 
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
-
       box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
       gtk_container_add (GTK_CONTAINER (window), box);
       gtk_widget_show (box);
@@ -138,7 +136,6 @@ do_menus (GtkWidget *do_widget)
       gtk_widget_show (menuitem);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
       gtk_widget_show (box2);
 
index ce5a077339f81d934844c2f1f259ebf3a6b44147..94800258693eed804e0028f1456a91b7bc7f956c 100644 (file)
@@ -233,18 +233,16 @@ gtk_rotated_bin_realize (GtkWidget *widget)
   GdkWindow *window;
   GdkWindowAttr attributes;
   gint attributes_mask;
-  guint border_width;
   GtkRequisition child_requisition;
 
   gtk_widget_set_realized (widget, TRUE);
 
   gtk_widget_get_allocation (widget, &allocation);
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
 
-  attributes.x = allocation.x + border_width;
-  attributes.y = allocation.y + border_width;
-  attributes.width = allocation.width - 2 * border_width;
-  attributes.height = allocation.height - 2 * border_width;
+  attributes.x = allocation.x;
+  attributes.y = allocation.y;
+  attributes.width = allocation.width;
+  attributes.height = allocation.height;
   attributes.window_type = GDK_WINDOW_CHILD;
   attributes.event_mask = gtk_widget_get_events (widget)
                         | GDK_EXPOSURE_MASK
@@ -383,8 +381,6 @@ gtk_rotated_bin_size_request (GtkWidget      *widget,
   GtkRotatedBin *bin = GTK_ROTATED_BIN (widget);
   GtkRequisition child_requisition;
   double s, c;
-  double w, h;
-  guint border_width;
 
   child_requisition.width = 0;
   child_requisition.height = 0;
@@ -395,12 +391,8 @@ gtk_rotated_bin_size_request (GtkWidget      *widget,
 
   s = sin (bin->angle);
   c = cos (bin->angle);
-  w = c * child_requisition.width + s * child_requisition.height;
-  h = s * child_requisition.width + c * child_requisition.height;
-
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-  requisition->width = border_width * 2 + w;
-  requisition->height = border_width * 2 + h;
+  requisition->width = c * child_requisition.width + s * child_requisition.height;
+  requisition->height = s * child_requisition.width + c * child_requisition.height;
 }
 
 static void
@@ -432,21 +424,18 @@ gtk_rotated_bin_size_allocate (GtkWidget     *widget,
                                GtkAllocation *allocation)
 {
   GtkRotatedBin *bin = GTK_ROTATED_BIN (widget);
-  guint border_width;
   gint w, h;
   gdouble s, c;
 
   gtk_widget_set_allocation (widget, allocation);
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-
-  w = allocation->width - border_width * 2;
-  h = allocation->height - border_width * 2;
+  w = allocation->width;
+  h = allocation->height;
 
   if (gtk_widget_get_realized (widget))
     gdk_window_move_resize (gtk_widget_get_window (widget),
-                            allocation->x + border_width,
-                            allocation->y + border_width,
+                            allocation->x,
+                            allocation->y,
                             w, h);
 
   if (bin->child && gtk_widget_get_visible (bin->child))
@@ -577,8 +566,6 @@ do_offscreen_window (GtkWidget *do_widget)
       g_signal_connect (window, "destroy",
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
-      gtk_container_set_border_width (GTK_CONTAINER (window), 10);
-
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
       scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL,
                                         0, G_PI/2, 0.01);
index ce91040ee7dad70fcbd64772d7b8abc78cec8229..06c4a0aa15b71786b631c6000a510bea75467fb9 100644 (file)
@@ -172,18 +172,16 @@ gtk_mirror_bin_realize (GtkWidget *widget)
   GdkWindow *window;
   GdkWindowAttr attributes;
   gint attributes_mask;
-  guint border_width;
   GtkRequisition child_requisition;
 
   gtk_widget_set_realized (widget, TRUE);
 
   gtk_widget_get_allocation (widget, &allocation);
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
 
-  attributes.x = allocation.x + border_width;
-  attributes.y = allocation.y + border_width;
-  attributes.width = allocation.width - 2 * border_width;
-  attributes.height = allocation.height - 2 * border_width;
+  attributes.x = allocation.x;
+  attributes.y = allocation.y;
+  attributes.width = allocation.width;
+  attributes.height = allocation.height;
   attributes.window_type = GDK_WINDOW_CHILD;
   attributes.event_mask = gtk_widget_get_events (widget)
                         | GDK_EXPOSURE_MASK
@@ -309,7 +307,6 @@ gtk_mirror_bin_size_request (GtkWidget      *widget,
 {
   GtkMirrorBin *bin = GTK_MIRROR_BIN (widget);
   GtkRequisition child_requisition;
-  guint border_width;
 
   child_requisition.width = 0;
   child_requisition.height = 0;
@@ -318,9 +315,8 @@ gtk_mirror_bin_size_request (GtkWidget      *widget,
     gtk_widget_get_preferred_size ( (bin->child),
                                &child_requisition, NULL);
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-  requisition->width = border_width * 2 + child_requisition.width + 10;
-  requisition->height = border_width * 2 + child_requisition.height * 2 + 10;
+  requisition->width = child_requisition.width + 10;
+  requisition->height = child_requisition.height * 2 + 10;
 }
 
 static void
@@ -353,19 +349,16 @@ gtk_mirror_bin_size_allocate (GtkWidget     *widget,
 {
   GtkMirrorBin *bin = GTK_MIRROR_BIN (widget);
   gint w, h;
-  guint border_width;
 
   gtk_widget_set_allocation (widget, allocation);
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-
-  w = allocation->width - border_width * 2;
-  h = allocation->height - border_width * 2;
+  w = allocation->width;
+  h = allocation->height;
 
   if (gtk_widget_get_realized (widget))
     gdk_window_move_resize (gtk_widget_get_window (widget),
-                            allocation->x + border_width,
-                            allocation->y + border_width,
+                            allocation->x,
+                            allocation->y,
                             w, h);
 
   if (bin->child && gtk_widget_get_visible (bin->child))
@@ -382,8 +375,8 @@ gtk_mirror_bin_size_allocate (GtkWidget     *widget,
 
       if (gtk_widget_get_realized (widget))
         gdk_window_move_resize (bin->offscreen_window,
-                                allocation->x + border_width,
-                                allocation->y + border_width,
+                                allocation->x,
+                                allocation->y,
                                 child_allocation.width, child_allocation.height);
       gtk_widget_size_allocate (bin->child, &child_allocation);
     }
@@ -482,8 +475,6 @@ do_offscreen_window2 (GtkWidget *do_widget)
       g_signal_connect (window, "destroy",
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
-      gtk_container_set_border_width (GTK_CONTAINER (window), 10);
-
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 
       bin = gtk_mirror_bin_new ();
index e92a37c3c449a2a0eff762d832b55a0f04612ffb..3fb0ef05319394cbfd23ce2312d4211ea4bf9cf2 100644 (file)
@@ -85,7 +85,6 @@ create_pane_options (GtkPaned    *paned,
   child2 = gtk_paned_get_child2 (paned);
 
   frame = gtk_frame_new (frame_label);
-  gtk_container_set_border_width (GTK_CONTAINER (frame), 4);
 
   table = gtk_grid_new ();
   gtk_container_add (GTK_CONTAINER (frame), table);
@@ -142,14 +141,12 @@ do_panes (GtkWidget *do_widget)
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "Paned Widgets");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
       gtk_container_add (GTK_CONTAINER (window), vbox);
 
       vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
       gtk_box_pack_start (GTK_BOX (vbox), vpaned, TRUE, TRUE);
-      gtk_container_set_border_width (GTK_CONTAINER(vpaned), 5);
 
       hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
       gtk_paned_add1 (GTK_PANED (vpaned), hpaned);
index db8ee77d65bd98ba64f31343ff778496473829c9..54daaf0329d1d59b9a81edc5f875ead505541070 100644 (file)
@@ -22,15 +22,11 @@ do_pickers (GtkWidget *do_widget)
     g_signal_connect (window, "destroy",
                       G_CALLBACK (gtk_widget_destroyed), &window);
 
-    gtk_container_set_border_width (GTK_CONTAINER (window), 10);
-
     table = gtk_grid_new ();
     gtk_grid_set_row_spacing (GTK_GRID (table), 3);
     gtk_grid_set_column_spacing (GTK_GRID (table), 10);
     gtk_container_add (GTK_CONTAINER (window), table);
 
-    gtk_container_set_border_width (GTK_CONTAINER (table), 10);
-
     label = gtk_label_new ("Color:");
     gtk_widget_set_halign (label, GTK_ALIGN_START);
     gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
index 44afdf26e06014991c25a160017fb50422087054..ec79b97c39ead1ecbe29cd36d90d072addab3531 100644 (file)
@@ -25,7 +25,6 @@ create_popover (GtkWidget       *parent,
   popover = gtk_popover_new (parent);
   gtk_popover_set_position (GTK_POPOVER (popover), pos);
   gtk_container_add (GTK_CONTAINER (popover), child);
-  gtk_container_set_border_width (GTK_CONTAINER (popover), 6);
   gtk_widget_show (child);
 
   return popover;
@@ -132,7 +131,6 @@ do_popover (GtkWidget *do_widget)
     {
       window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
       box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 24);
-      gtk_container_set_border_width (GTK_CONTAINER (box), 24);
       gtk_container_add (GTK_CONTAINER (window), box);
 
       g_signal_connect (window, "destroy",
index 0265ab355dacde88289cb3380211768f861f9d40..732268401c49df04bff77fbfe566704b2805feb9 100644 (file)
@@ -2,7 +2,6 @@
 <interface>
   <!-- interface-requires gtk+ 3.6 -->
   <object class="GtkWindow" id="window">
-    <property name="border_width">5</property>
     <property name="default_width">300</property>
     <property name="default_height">300</property>
     <property name="title">Revealer</property>
index 198fa0933750a9d5f2d1828ce2da31c4611ae488..521b3f2c45f4f84ff620f75a4a0a2c1611742789 100644 (file)
@@ -21,7 +21,6 @@
   </object>
   <object class="GtkWindow" id="window1">
     <property name="title" translatable="yes">Scales</property>
-    <property name="border-width" translatable="yes">20</property>
     <child>
       <object class="GtkGrid" id="grid1">
         <property name="visible">1</property>
index 37cb10a51be2f6fccbb67792a3ed13baf6d0624e..09743e5cc4d87badff3e500ba156f1c098f6ced8 100644 (file)
@@ -239,7 +239,6 @@ do_search_entry (GtkWidget *do_widget)
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
       gtk_container_add (GTK_CONTAINER (window), vbox);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
 
       label = gtk_label_new (NULL);
       gtk_label_set_markup (GTK_LABEL (label), "Search entry demo");
@@ -247,7 +246,6 @@ do_search_entry (GtkWidget *do_widget)
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
       gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE);
-      gtk_container_set_border_width (GTK_CONTAINER (hbox), 0);
 
       /* Create our entry */
       entry = gtk_search_entry_new ();
index be70e5175606c816ad2eec6feed947277b1bd5dd..eabac9690906df82390c02ace6f5a4d22d864ffc 100644 (file)
@@ -87,7 +87,6 @@ do_search_entry2 (GtkWidget *do_widget)
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
       gtk_container_add (GTK_CONTAINER (window), vbox);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 0);
 
       entry = gtk_search_entry_new ();
       container = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
@@ -117,7 +116,6 @@ do_search_entry2 (GtkWidget *do_widget)
       /* Result */
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
       gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE);
-      gtk_container_set_border_width (GTK_CONTAINER (hbox), 0);
 
       label = gtk_label_new ("Result:");
       gtk_label_set_xalign (GTK_LABEL (label), 0.0);
@@ -134,7 +132,6 @@ do_search_entry2 (GtkWidget *do_widget)
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
       gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE);
-      gtk_container_set_border_width (GTK_CONTAINER (hbox), 0);
 
       label = gtk_label_new ("Signal:");
       gtk_label_set_xalign (GTK_LABEL (label), 0.0);
index e196f254f66411978f81d931ab2391b5ba39aee5..424555895df1e35b7c8a28e8893b844abfc38f47 100644 (file)
@@ -109,7 +109,6 @@ do_sizegroup (GtkWidget *do_widget)
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
       gtk_container_add (GTK_CONTAINER (window), vbox);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
 
       size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
       g_object_set_data_full (G_OBJECT (window), "size-group", size_group, g_object_unref);
@@ -119,7 +118,6 @@ do_sizegroup (GtkWidget *do_widget)
       gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE);
 
       table = gtk_grid_new ();
-      gtk_container_set_border_width (GTK_CONTAINER (table), 5);
       gtk_grid_set_row_spacing (GTK_GRID (table), 5);
       gtk_grid_set_column_spacing (GTK_GRID (table), 10);
       gtk_container_add (GTK_CONTAINER (frame), table);
@@ -132,7 +130,6 @@ do_sizegroup (GtkWidget *do_widget)
       gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE);
 
       table = gtk_grid_new ();
-      gtk_container_set_border_width (GTK_CONTAINER (table), 5);
       gtk_grid_set_row_spacing (GTK_GRID (table), 5);
       gtk_grid_set_column_spacing (GTK_GRID (table), 10);
       gtk_container_add (GTK_CONTAINER (frame), table);
index 969665f655aece6548c1e4950f00026d60bbedb6..597fe7a60fb7c9f498a3c0bd0add487d28062c44 100644 (file)
@@ -53,7 +53,6 @@ do_spinner (GtkWidget *do_widget)
 
     vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
     gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE);
-    gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
 
     /* Sensitive */
     hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
index 13ea318d1cff5d4fe84ff3bf8e9a9ab5f07c3521..474fdbf9d6a455d88defe5e1fce1afd38580de5a 100644 (file)
@@ -481,10 +481,8 @@ do_textview (GtkWidget *do_widget)
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "Multiple Views");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
-      gtk_container_set_border_width (GTK_CONTAINER(vpaned), 5);
       gtk_container_add (GTK_CONTAINER (window), vpaned);
 
       /* For convenience, we just use the autocreated buffer from
index 63fea3ba34166a048f5aaa8f5d67f6c119f20b30..afb9dcdaf2d0dba2369d27eeefee51dd6a108d9a 100644 (file)
@@ -25,7 +25,6 @@ do_theming_style_classes (GtkWidget *do_widget)
                              gtk_widget_get_screen (do_widget));
       gtk_window_set_title (GTK_WINDOW (window), "Style Classes");
       gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
-      gtk_container_set_border_width (GTK_CONTAINER (window), 12);
       g_signal_connect (window, "destroy",
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
index 2d61e7ee1de2a482ac9f44e654a63acd15b3e859..b158cf3288bde0cc29354f6bfc264c15be0eff8c 100644 (file)
@@ -443,7 +443,6 @@ do_toolpalette (GtkWidget *do_widget)
 
       g_signal_connect (window, "destroy",
                         G_CALLBACK (gtk_widget_destroyed), &window);
-      gtk_container_set_border_width (GTK_CONTAINER (window), 8);
 
       /* Add widgets to control the ToolPalette appearance: */
       box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
@@ -529,7 +528,6 @@ do_toolpalette (GtkWidget *do_widget)
       gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (palette_scroller),
                                       GTK_POLICY_NEVER,
                                       GTK_POLICY_AUTOMATIC);
-      gtk_container_set_border_width (GTK_CONTAINER (palette_scroller), 6);
       gtk_widget_set_hexpand (palette_scroller, TRUE);
 
       gtk_container_add (GTK_CONTAINER (palette_scroller), palette);
@@ -549,7 +547,6 @@ do_toolpalette (GtkWidget *do_widget)
       /* ===== notebook ===== */
 
       notebook = gtk_notebook_new ();
-      gtk_container_set_border_width (GTK_CONTAINER (notebook), 6);
       gtk_box_pack_end (GTK_BOX(hbox), notebook, FALSE, FALSE);
 
       /* ===== DnD for tool items ===== */
@@ -585,7 +582,6 @@ do_toolpalette (GtkWidget *do_widget)
                                       GTK_POLICY_AUTOMATIC,
                                       GTK_POLICY_ALWAYS);
       gtk_container_add (GTK_CONTAINER (contents_scroller), contents);
-      gtk_container_set_border_width (GTK_CONTAINER (contents_scroller), 6);
 
       gtk_notebook_append_page (GTK_NOTEBOOK (notebook),
                                 contents_scroller,
@@ -615,7 +611,6 @@ do_toolpalette (GtkWidget *do_widget)
                                       GTK_POLICY_AUTOMATIC,
                                       GTK_POLICY_ALWAYS);
       gtk_container_add (GTK_CONTAINER (contents_scroller), contents);
-      gtk_container_set_border_width (GTK_CONTAINER (contents_scroller), 6);
 
       gtk_notebook_append_page (GTK_NOTEBOOK (notebook), contents_scroller,
                                 gtk_label_new ("Interactive DnD Mode"));
index dbd94b7d025ba0ea01628c22562c03d08db87b19..bbbacbe7433520db3778bb40d39079a5b680ca30 100644 (file)
@@ -202,7 +202,6 @@ do_transparent (GtkWidget *do_widget)
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "Transparency");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       view = gtk_text_view_new ();
 
index 318b4dba172f3760ded0ae784663589f70282d64..32ec14c8afa488f9b50910af77edfad72847c613 100644 (file)
@@ -398,7 +398,6 @@ do_tree_store (GtkWidget *do_widget)
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
       gtk_container_add (GTK_CONTAINER (window), vbox);
 
       gtk_box_pack_start (GTK_BOX (vbox),
index c7d80a6804e6b2ed1da108e74a7ed1ed4a0ec772..caae6d9c666cf74255fb6072de79e94281893416 100644 (file)
@@ -441,7 +441,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
               <object class="GtkBox" id="page1">
                 <property name="visible">1</property>
                 <property name="orientation">vertical</property>
-                <property name="border-width">10</property>
                 <property name="spacing">10</property>
                 <child>
                   <object class="GtkBox" id="box2">
@@ -1830,7 +1829,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
                   <object class="GtkBox">
                     <property name="visible">1</property>
                     <property name="spacing">10</property>
-                    <property name="border-width">16</property>
                     <child>
                       <object class="GtkBox">
                         <property name="visible">1</property>
@@ -2873,7 +2871,6 @@ microphone-sensitivity-medium-symbolic</property>
             <child>
               <object class="GtkBox">
                 <property name="visible">1</property>
-                <property name="border-width">16</property>
                 <property name="spacing">10</property>
                 <child>
                   <object class="GtkBox">
index 9ae88f9f04f9942030d0eb6c743ed033471cdf18..287de5409ebfa96d79cb3a81de8938df5ffa0434 100644 (file)
@@ -999,8 +999,6 @@ gtk_container_child_set_valist
 gtk_container_child_notify
 gtk_container_child_notify_by_pspec
 gtk_container_forall
-gtk_container_get_border_width
-gtk_container_set_border_width
 gtk_container_propagate_draw
 gtk_container_get_focus_chain
 gtk_container_set_focus_chain
@@ -1009,7 +1007,6 @@ gtk_container_class_find_child_property
 gtk_container_class_install_child_property
 gtk_container_class_install_child_properties
 gtk_container_class_list_child_properties
-gtk_container_class_handle_border_width
 
 <SUBSECTION Standard>
 GTK_CONTAINER
index 5315f5a0636e8dd9827ebd402d130b6aee5c41c7..6f3303a93504275b7214e88bbcacb25efdfa496f 100644 (file)
@@ -36,7 +36,6 @@ new_widget_info (const char *name,
   else
     {
       info->window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-      gtk_container_set_border_width (GTK_CONTAINER (info->window), 12);
       info->include_decorations = FALSE;
       gtk_widget_show_all (widget);
       gtk_container_add (GTK_CONTAINER (info->window), widget);
@@ -391,7 +390,6 @@ create_info_bar (void)
   gtk_container_add (GTK_CONTAINER (align), widget);
 
   info = new_widget_info ("info-bar", align, SMALL);
-  gtk_container_set_border_width (GTK_CONTAINER (info->window), 0);
 
   return info;
 }
@@ -423,7 +421,6 @@ create_search_bar (void)
   gtk_box_pack_start (GTK_BOX (box), view, TRUE, TRUE);
 
   info = new_widget_info ("search-bar", box, SMALL);
-  gtk_container_set_border_width (GTK_CONTAINER (info->window), 0);
 
   return info;
 }
@@ -457,7 +454,6 @@ create_action_bar (void)
   gtk_container_add (GTK_CONTAINER (box), widget);
 
   info = new_widget_info ("action-bar", box, SMALL);
-  gtk_container_set_border_width (GTK_CONTAINER (info->window), 0);
 
   return info;
 }
@@ -1086,7 +1082,6 @@ create_statusbar (void)
   gtk_box_pack_end (GTK_BOX (vbox), align, FALSE, FALSE);
 
   info = new_widget_info ("statusbar", vbox, SMALL);
-  gtk_container_set_border_width (GTK_CONTAINER (info->window), 0);
 
   return info;
 }
@@ -1280,7 +1275,6 @@ create_headerbar (void)
   GtkWidget *button;
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-  gtk_container_set_border_width (GTK_CONTAINER (window), 0);
   view = gtk_text_view_new ();
   gtk_widget_show (view);
   gtk_widget_set_size_request (window, 220, 150);
index 7335ad993e90f742f97300667d657030cee067e2..6a4c84ed444dcbdf05bcee889092f06aaebfd5b2 100644 (file)
@@ -114,7 +114,6 @@ activate (GApplication *app,
   gtk_widget_set_halign (GTK_WIDGET (button), GTK_ALIGN_CENTER);
   gtk_widget_set_valign (GTK_WIDGET (button), GTK_ALIGN_START);
   gtk_container_add (GTK_CONTAINER (win), button);
-  gtk_container_set_border_width (GTK_CONTAINER (win), 12);
   gtk_widget_show_all (win);
 
   g_object_unref (button_menu);
index 6321c93ca0d56fe2878ceba8ea3e312ed7be9c3a..b9b5c2d145bb5528c03ceebd5f7f4cdb351f76b2 100644 (file)
@@ -2,7 +2,6 @@
   <object id="window" class="GtkWindow">
     <property name="visible">True</property>
     <property name="title">Grid</property>
-    <property name="border-width">10</property>
     <child>
       <object id="grid" class="GtkGrid">
         <property name="visible">True</property>
index a496bcabf42effba67f9a33aa8b50cf40f9457b7..2d4b9b47d2b8b378c68012ad3f235966cff7ec04 100644 (file)
@@ -142,8 +142,6 @@ activate (GtkApplication *app,
 
   g_signal_connect (window, "destroy", G_CALLBACK (close_window), NULL);
 
-  gtk_container_set_border_width (GTK_CONTAINER (window), 8);
-
   frame = gtk_frame_new (NULL);
   gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
   gtk_container_add (GTK_CONTAINER (window), frame);
index 2d9db4fb9077486202db23deedc9428bf35c729a..06cf95535c32a34278150bc867977c02e3fe6bf8 100644 (file)
@@ -18,7 +18,6 @@ activate (GtkApplication *app,
   /* create a new window, and set its title */
   window = gtk_application_window_new (app);
   gtk_window_set_title (GTK_WINDOW (window), "Window");
-  gtk_container_set_border_width (GTK_CONTAINER (window), 10);
 
   /* Here we construct the container that is going pack our buttons */
   grid = gtk_grid_new ();
index 04f00293674d74b6f74b942170ebfd454f056a71..82006d60e64261063acd57d2b0c887f296b65c6e 100644 (file)
@@ -338,7 +338,6 @@ configure_plugins (GSimpleAction *action,
   gtk_builder_add_from_string (builder,
                                "<interface>"
                                "  <object class='GtkDialog' id='plugin-dialog'>"
-                               "    <property name='border-width'>12</property>"
                                "    <property name='title'>Plugins</property>"
                                "    <child internal-child='vbox'>"
                                "      <object class='GtkBox' id='content-area'>"
index eaf7f2bd4cba98695836b31803fdcde57f92607e..8c5913e17569a72fd160ac30468f55b7eea2357f 100644 (file)
@@ -556,7 +556,6 @@ gtk_alignment_size_allocate (GtkWidget     *widget,
   GtkAllocation child_allocation;
   GtkWidget *child;
   gint width, height;
-  gint border_width;
   gint baseline;
 
   gtk_widget_set_allocation (widget, allocation);
@@ -571,17 +570,15 @@ gtk_alignment_size_allocate (GtkWidget     *widget,
       gint child_width, child_height;
       double yalign, yscale;
 
-      border_width = gtk_container_get_border_width (GTK_CONTAINER (alignment));
-
       padding_horizontal = priv->padding_left + priv->padding_right;
       padding_vertical = priv->padding_top + priv->padding_bottom;
 
-      width  = MAX (1, allocation->width - padding_horizontal - 2 * border_width);
-      height = MAX (1, allocation->height - padding_vertical - 2 * border_width);
+      width  = MAX (1, allocation->width - padding_horizontal);
+      height = MAX (1, allocation->height - padding_vertical);
 
       baseline = gtk_widget_get_allocated_baseline (widget);
       if (baseline != -1)
-       baseline -= border_width + priv->padding_top;
+       baseline -= priv->padding_top;
 
       /* If we get a baseline set that means we're baseline aligned, and the parent
         honored that. In that case we have to ignore yalign/yscale as we need
@@ -634,11 +631,11 @@ gtk_alignment_size_allocate (GtkWidget     *widget,
        child_allocation.height = height;
 
       if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
-       child_allocation.x = (1.0 - priv->xalign) * (width - child_allocation.width) + allocation->x + border_width + priv->padding_right;
+       child_allocation.x = (1.0 - priv->xalign) * (width - child_allocation.width) + allocation->x + priv->padding_right;
       else 
-       child_allocation.x = priv->xalign * (width - child_allocation.width) + allocation->x + border_width + priv->padding_left;
+       child_allocation.x = priv->xalign * (width - child_allocation.width) + allocation->x + priv->padding_left;
 
-      child_allocation.y = yalign * (height - child_allocation.height) + allocation->y + border_width + priv->padding_top;
+      child_allocation.y = yalign * (height - child_allocation.height) + allocation->y + priv->padding_top;
 
       gtk_widget_size_allocate_with_baseline (child, &child_allocation, baseline);
     }
@@ -659,16 +656,14 @@ gtk_alignment_get_preferred_size (GtkWidget      *widget,
   GtkWidget *child;
   guint minimum, natural;
   guint top_offset;
-  guint border;
 
   if (minimum_baseline)
     *minimum_baseline = -1;
   if (natural_baseline)
     *natural_baseline = -1;
 
-  border = gtk_container_get_border_width (GTK_CONTAINER (widget));
-  natural = minimum = border * 2;
-  top_offset = border;
+  natural = minimum = 0;
+  top_offset = 0;
 
   if ((child = gtk_bin_get_child (GTK_BIN (widget))) && gtk_widget_get_visible (child))
     {
index b51f8693278455d8c59f5618b3c3c77cf3a10e02..a10e893abff6875885538bbcca9d180b8a143961 100644 (file)
@@ -177,7 +177,6 @@ gtk_table_class_init (GtkTableClass *class)
   container_class->child_type = gtk_table_child_type;
   container_class->set_child_property = gtk_table_set_child_property;
   container_class->get_child_property = gtk_table_get_child_property;
-  gtk_container_class_handle_border_width (container_class);
 
   g_object_class_install_property (gobject_class,
                                    PROP_N_ROWS,
index cb5e8643c2e9a118d90a40fc2770b99416cdbacd..28e44547d0fd1af9d88b9fd2565b70158bf9c0d5 100644 (file)
@@ -186,14 +186,12 @@ needs_explicit_setting (MyParserData *data,
     { "GtkCalendar", "year", 0 },
     { "GtkCalendar", "month", 0 },
     { "GtkCalendar", "day", 0 },
-    { "GtkDialog", "border-width", 0 },
     { "GtkPlacesSidebar", "show-desktop", 0 },
     { "GtkRadioButton", "draw-indicator", 0 },
     { "GtkGrid", "left-attach", 1 },
     { "GtkGrid", "top-attach", 1 },
     { "GtkWidget", "hexpand", 0 },
     { "GtkWidget", "vexpand", 0 },
-    { "GtkContainer", "border-width", 0 },
     { "GtkVBox", "expand", 1 },
     { NULL, NULL, 0 }
   };
index 1694547e9870db359c8011945aac3737aa1e1817..556525d12120a3da3ccf30871b174c84c0f76df7 100644 (file)
@@ -522,45 +522,6 @@ gtk_app_chooser_dialog_constructed (GObject *object)
   setup_search (self);
 }
 
-/* This is necessary do deal with the fact that GtkDialog
- * exposes bits of its internal spacing as style properties,
- * and puts the action area inside the content area.
- * To achieve a flush-top search bar, we need the content
- * area border to be 0, and distribute the spacing to other
- * containers to compensate.
- */
-static void
-update_spacings (GtkAppChooserDialog *self)
-{
-  GtkWidget *widget;
-  gint content_area_border;
-  gint action_area_border;
-
-  gtk_widget_style_get (GTK_WIDGET (self),
-                        "content-area-border", &content_area_border,
-                        "action-area-border", &action_area_border,
-                        NULL);
-
-  widget = gtk_dialog_get_content_area (GTK_DIALOG (self));
-  gtk_container_set_border_width (GTK_CONTAINER (widget), 0);
-
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-  widget = gtk_dialog_get_action_area (GTK_DIALOG (self));
-G_GNUC_END_IGNORE_DEPRECATIONS
-  gtk_container_set_border_width (GTK_CONTAINER (widget), 5 + content_area_border + action_area_border);
-
-  widget = self->priv->inner_box;
-  gtk_container_set_border_width (GTK_CONTAINER (widget), 10 + content_area_border);
-}
-
-static void
-gtk_app_chooser_dialog_style_updated (GtkWidget *widget)
-{
-  GTK_WIDGET_CLASS (gtk_app_chooser_dialog_parent_class)->style_updated (widget);
-
-  update_spacings (GTK_APP_CHOOSER_DIALOG (widget));
-}
-
 static void
 gtk_app_chooser_dialog_dispose (GObject *object)
 {
@@ -646,20 +607,19 @@ gtk_app_chooser_dialog_iface_init (GtkAppChooserIface *iface)
 static void
 gtk_app_chooser_dialog_class_init (GtkAppChooserDialogClass *klass)
 {
-  GtkWidgetClass *widget_class;
   GObjectClass *gobject_class;
+  GtkWidgetClass *widget_class;
   GParamSpec *pspec;
 
   gobject_class = G_OBJECT_CLASS (klass);
+  widget_class = GTK_WIDGET_CLASS (klass);
+
   gobject_class->dispose = gtk_app_chooser_dialog_dispose;
   gobject_class->finalize = gtk_app_chooser_dialog_finalize;
   gobject_class->set_property = gtk_app_chooser_dialog_set_property;
   gobject_class->get_property = gtk_app_chooser_dialog_get_property;
   gobject_class->constructed = gtk_app_chooser_dialog_constructed;
 
-  widget_class = GTK_WIDGET_CLASS (klass);
-  widget_class->style_updated = gtk_app_chooser_dialog_style_updated;
-
   g_object_class_override_property (gobject_class, PROP_CONTENT_TYPE, "content-type");
 
   /**
@@ -718,8 +678,6 @@ gtk_app_chooser_dialog_init (GtkAppChooserDialog *self)
    */
   g_signal_connect (self, "response",
                     G_CALLBACK (gtk_app_chooser_dialog_response), NULL);
-
-  update_spacings (self);
 }
 
 static void
index 3e1e9692b03e6438c47abdbb2a7f6579661fa0c8..7929812d6290dabfd77e3a5feba9ab4d5fab5643 100644 (file)
@@ -579,16 +579,14 @@ gtk_application_window_real_get_preferred_width (GtkWidget *widget,
   if (window->priv->menubar != NULL)
     {
       gint menubar_min_width, menubar_nat_width;
-      gint border_width;
       GtkBorder border = { 0 };
 
       gtk_widget_get_preferred_width (window->priv->menubar, &menubar_min_width, &menubar_nat_width);
 
-      border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
       _gtk_window_get_shadow_width (GTK_WINDOW (widget), &border);
 
-      menubar_min_width += 2 * border_width + border.left + border.right;
-      menubar_nat_width += 2 * border_width + border.left + border.right;
+      menubar_min_width += border.left + border.right;
+      menubar_nat_width += border.left + border.right;
 
       *minimum_width = MAX (*minimum_width, menubar_min_width);
       *natural_width = MAX (*natural_width, menubar_nat_width);
@@ -615,16 +613,14 @@ gtk_application_window_real_get_preferred_width_for_height (GtkWidget *widget,
   if (window->priv->menubar != NULL)
     {
       gint menubar_min_width, menubar_nat_width;
-      gint border_width;
       GtkBorder border = { 0 };
 
       gtk_widget_get_preferred_width_for_height (window->priv->menubar, menubar_height, &menubar_min_width, &menubar_nat_width);
 
-      border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
       _gtk_window_get_shadow_width (GTK_WINDOW (widget), &border);
 
-      menubar_min_width += 2 * border_width + border.left + border.right;
-      menubar_nat_width += 2 * border_width + border.left + border.right;
+      menubar_min_width += border.left + border.right;
+      menubar_nat_width += border.left + border.right;
 
       *minimum_width = MAX (*minimum_width, menubar_min_width);
       *natural_width = MAX (*natural_width, menubar_nat_width);
index 979f2a84445f851108ffdfc08b96ac5074525dad..9ea859f7d2b9a714335dafc7c661731fe9313c0f 100644 (file)
@@ -203,7 +203,6 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
   container_class->add = gtk_button_box_add;
   container_class->set_child_property = gtk_button_box_set_child_property;
   container_class->get_child_property = gtk_button_box_get_child_property;
-  gtk_container_class_handle_border_width (container_class);
 
   /**
    * GtkButtonBox:child-min-width:
index 1295a37bc21fe8438528d17d3e6e27bfb09eb80a..2fba246162d374ad189349093d352ffbd763f3f9 100644 (file)
@@ -171,15 +171,6 @@ gtk_bin_forall (GtkContainer *container,
     (* callback) (priv->child, callback_data);
 }
 
-static int
-gtk_bin_get_effective_border_width (GtkBin *bin)
-{
-  if (GTK_CONTAINER_CLASS (GTK_BIN_GET_CLASS (bin))->_handle_border_width)
-    return 0;
-
-  return gtk_container_get_border_width (GTK_CONTAINER (bin));
-}
-
 static void
 gtk_bin_get_preferred_width (GtkWidget *widget,
                              gint      *minimum_width,
@@ -187,7 +178,6 @@ gtk_bin_get_preferred_width (GtkWidget *widget,
 {
   GtkBin *bin = GTK_BIN (widget);
   GtkBinPrivate *priv = bin->priv;
-  gint border_width;
 
   *minimum_width = 0;
   *natural_width = 0;
@@ -200,10 +190,6 @@ gtk_bin_get_preferred_width (GtkWidget *widget,
       *minimum_width = child_min;
       *natural_width = child_nat;
     }
-
-  border_width = gtk_bin_get_effective_border_width (bin);
-  *minimum_width += 2 * border_width;
-  *natural_width += 2 * border_width;
 }
 
 static void
@@ -213,7 +199,6 @@ gtk_bin_get_preferred_height (GtkWidget *widget,
 {
   GtkBin *bin = GTK_BIN (widget);
   GtkBinPrivate *priv = bin->priv;
-  gint border_width;
 
   *minimum_height = 0;
   *natural_height = 0;
@@ -226,10 +211,6 @@ gtk_bin_get_preferred_height (GtkWidget *widget,
       *minimum_height = child_min;
       *natural_height = child_nat;
     }
-
-  border_width = gtk_bin_get_effective_border_width (bin);
-  *minimum_height += 2 * border_width;
-  *natural_height += 2 * border_width;
 }
 
 static void 
@@ -240,25 +221,19 @@ gtk_bin_get_preferred_width_for_height (GtkWidget *widget,
 {
   GtkBin *bin = GTK_BIN (widget);
   GtkBinPrivate *priv = bin->priv;
-  gint border_width;
 
   *minimum_width = 0;
   *natural_width = 0;
 
-  border_width = gtk_bin_get_effective_border_width (bin);
-
   if (priv->child && gtk_widget_get_visible (priv->child))
     {
       gint child_min, child_nat;
-      gtk_widget_get_preferred_width_for_height (priv->child, height - 2 * border_width,
+      gtk_widget_get_preferred_width_for_height (priv->child, height,
                                                  &child_min, &child_nat);
 
       *minimum_width = child_min;
       *natural_width = child_nat;
     }
-
-  *minimum_width += 2 * border_width;
-  *natural_width += 2 * border_width;
 }
 
 static void
@@ -269,25 +244,19 @@ gtk_bin_get_preferred_height_for_width  (GtkWidget *widget,
 {
   GtkBin *bin = GTK_BIN (widget);
   GtkBinPrivate *priv = bin->priv;
-  gint border_width;
 
   *minimum_height = 0;
   *natural_height = 0;
 
-  border_width = gtk_bin_get_effective_border_width (bin);
-
   if (priv->child && gtk_widget_get_visible (priv->child))
     {
       gint child_min, child_nat;
-      gtk_widget_get_preferred_height_for_width (priv->child, width - 2 * border_width,
+      gtk_widget_get_preferred_height_for_width (priv->child, width,
                                                  &child_min, &child_nat);
 
       *minimum_height = child_min;
       *natural_height = child_nat;
     }
-
-  *minimum_height += 2 * border_width;
-  *natural_height += 2 * border_width;
 }
 
 static void
@@ -301,15 +270,7 @@ gtk_bin_size_allocate (GtkWidget     *widget,
 
   if (priv->child && gtk_widget_get_visible (priv->child))
     {
-      GtkAllocation child_allocation;
-      gint border_width = gtk_bin_get_effective_border_width (bin);
-
-      child_allocation.x = allocation->x + border_width;
-      child_allocation.y = allocation->y + border_width;
-      child_allocation.width = allocation->width - 2 * border_width;
-      child_allocation.height = allocation->height - 2 * border_width;
-
-      gtk_widget_size_allocate (priv->child, &child_allocation);
+      gtk_widget_size_allocate (priv->child, allocation);
     }
 }
 
index f0e0f7bebbfeabd6e69c5192ab4587338b96fc5d..ddb680ba3e708347b05ec2a4a0b5c184ba64d06a 100644 (file)
@@ -265,7 +265,6 @@ gtk_box_class_init (GtkBoxClass *class)
   container_class->set_child_property = gtk_box_set_child_property;
   container_class->get_child_property = gtk_box_get_child_property;
   container_class->get_path_for_child = gtk_box_get_path_for_child;
-  gtk_container_class_handle_border_width (container_class);
 
   g_object_class_override_property (object_class,
                                     PROP_ORIENTATION,
index 0e4eacae05b16dd4423b31c1f1e62ef1ad60d094..547461eeca11d31e3738f4f268d3093611f1ef8f 100644 (file)
  *   <object class="GtkDialog" id="dialog1">
  *     <child internal-child="vbox">
  *       <object class="GtkBox" id="vbox1">
- *         <property name="border-width">10</property>
  *         <child internal-child="action_area">
  *           <object class="GtkButtonBox" id="hbuttonbox1">
- *             <property name="border-width">20</property>
  *             <child>
  *               <object class="GtkButton" id="ok_button">
  *                 <property name="label">gtk-ok</property>
index 4b17c3338f54bd177e2fdfae7b057e4901db8235..dbe7d82709c2aa17e523654ab6ffa4466970b176 100644 (file)
@@ -219,11 +219,9 @@ gtk_button_class_init (GtkButtonClass *klass)
 {
   GObjectClass *gobject_class;
   GtkWidgetClass *widget_class;
-  GtkContainerClass *container_class;
 
   gobject_class = G_OBJECT_CLASS (klass);
   widget_class = (GtkWidgetClass*) klass;
-  container_class = (GtkContainerClass*) klass;
   
   gobject_class->constructed  = gtk_button_constructed;
   gobject_class->dispose      = gtk_button_dispose;
@@ -250,8 +248,6 @@ gtk_button_class_init (GtkButtonClass *klass)
   widget_class->state_changed = gtk_button_state_changed;
   widget_class->grab_notify = gtk_button_grab_notify;
 
-  gtk_container_class_handle_border_width (container_class);
-
   klass->clicked = NULL;
   klass->activate = gtk_real_button_activate;
 
index a3044a06974c1fbfc5d9f0acf8266f4d907f1c0b..603bf4ab050f00cf353d84a13266951435b43970 100644 (file)
@@ -668,8 +668,6 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
   container_class->add = gtk_combo_box_add;
   container_class->remove = gtk_combo_box_remove;
 
-  gtk_container_class_handle_border_width (container_class);
-
   widget_class = (GtkWidgetClass *)klass;
   widget_class->size_allocate = gtk_combo_box_size_allocate;
   widget_class->draw = gtk_combo_box_draw;
index d90370b0b4d5ec2d09f3a314eeb9798745890cbb..fcd086d765fccdd11d8140b05e5d8082f882166e 100644 (file)
@@ -280,9 +280,6 @@ struct _GtkContainerPrivate
   GdkFrameClock *resize_clock;
   guint resize_handler;
 
-  guint border_width : 16;
-  guint border_width_set   : 1;
-
   guint has_focus_chain    : 1;
   guint reallocate_redraws : 1;
   guint restyle_pending    : 1;
@@ -301,7 +298,6 @@ enum {
 
 enum {
   PROP_0,
-  PROP_BORDER_WIDTH,
   PROP_RESIZE_MODE,
   PROP_CHILD,
   LAST_PROP
@@ -350,21 +346,6 @@ static gint     gtk_container_draw                 (GtkWidget         *widget,
                                                     cairo_t           *cr);
 static void     gtk_container_map                  (GtkWidget         *widget);
 static void     gtk_container_unmap                (GtkWidget         *widget);
-static void     gtk_container_adjust_size_request  (GtkWidget         *widget,
-                                                    GtkOrientation     orientation,
-                                                    gint              *minimum_size,
-                                                    gint              *natural_size);
-static void     gtk_container_adjust_baseline_request (GtkWidget      *widget,
-                                                      gint           *minimum_baseline,
-                                                      gint           *natural_baseline);
-static void     gtk_container_adjust_size_allocation (GtkWidget       *widget,
-                                                      GtkOrientation   orientation,
-                                                      gint            *minimum_size,
-                                                      gint            *natural_size,
-                                                      gint            *allocated_pos,
-                                                      gint            *allocated_size);
-static void     gtk_container_adjust_baseline_allocation (GtkWidget      *widget,
-                                                         gint           *baseline);
 static GtkSizeRequestMode gtk_container_get_request_mode (GtkWidget   *widget);
 
 static gchar* gtk_container_child_default_composite_name (GtkContainer *container,
@@ -510,11 +491,6 @@ gtk_container_class_init (GtkContainerClass *class)
   widget_class->map = gtk_container_map;
   widget_class->unmap = gtk_container_unmap;
   widget_class->focus = gtk_container_focus;
-
-  widget_class->adjust_size_request = gtk_container_adjust_size_request;
-  widget_class->adjust_baseline_request = gtk_container_adjust_baseline_request;
-  widget_class->adjust_size_allocation = gtk_container_adjust_size_allocation;
-  widget_class->adjust_baseline_allocation = gtk_container_adjust_baseline_allocation;
   widget_class->get_request_mode = gtk_container_get_request_mode;
 
   class->add = gtk_container_add_unimplemented;
@@ -534,14 +510,6 @@ gtk_container_class_init (GtkContainerClass *class)
                          GTK_RESIZE_PARENT,
                          GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY|G_PARAM_DEPRECATED);
 
-  container_props[PROP_BORDER_WIDTH] =
-      g_param_spec_uint ("border-width",
-                         P_("Border width"),
-                         P_("The width of the empty border outside the containers children"),
-                         0, 65535,
-                         0,
-                         GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
-
   container_props[PROP_CHILD] =
       g_param_spec_object ("child",
                            P_("Child"),
@@ -1674,10 +1642,8 @@ gtk_container_init (GtkContainer *container)
   priv = container->priv;
 
   priv->focus_child = NULL;
-  priv->border_width = 0;
   priv->resize_mode = GTK_RESIZE_PARENT;
   priv->reallocate_redraws = FALSE;
-  priv->border_width_set = FALSE;
 }
 
 static void
@@ -1712,9 +1678,6 @@ gtk_container_set_property (GObject         *object,
 
   switch (prop_id)
     {
-    case PROP_BORDER_WIDTH:
-      gtk_container_set_border_width (container, g_value_get_uint (value));
-      break;
     case PROP_RESIZE_MODE:
       G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
       gtk_container_set_resize_mode (container, g_value_get_enum (value));
@@ -1740,9 +1703,6 @@ gtk_container_get_property (GObject         *object,
 
   switch (prop_id)
     {
-    case PROP_BORDER_WIDTH:
-      g_value_set_uint (value, priv->border_width);
-      break;
     case PROP_RESIZE_MODE:
       g_value_set_enum (value, priv->resize_mode);
       break;
@@ -1752,86 +1712,6 @@ gtk_container_get_property (GObject         *object,
     }
 }
 
-gboolean
-_gtk_container_get_border_width_set (GtkContainer *container)
-{
-  GtkContainerPrivate *priv;
-
-  g_return_val_if_fail (GTK_IS_CONTAINER (container), FALSE);
-
-  priv = container->priv;
-
-  return priv->border_width_set;
-}
-
-void
-_gtk_container_set_border_width_set (GtkContainer *container,
-                                     gboolean      border_width_set)
-{
-  GtkContainerPrivate *priv;
-
-  g_return_if_fail (GTK_IS_CONTAINER (container));
-
-  priv = container->priv;
-
-  priv->border_width_set = border_width_set ? TRUE : FALSE;
-}
-
-/**
- * gtk_container_set_border_width:
- * @container: a #GtkContainer
- * @border_width: amount of blank space to leave outside
- *   the container. Valid values are in the range 0-65535 pixels.
- *
- * Sets the border width of the container.
- *
- * The border width of a container is the amount of space to leave
- * around the outside of the container. The only exception to this is
- * #GtkWindow; because toplevel windows can’t leave space outside,
- * they leave the space inside. The border is added on all sides of
- * the container. To add space to only one side, use a specific
- * #GtkWidget:margin property on the child widget, for example
- * #GtkWidget:margin-top.
- **/
-void
-gtk_container_set_border_width (GtkContainer *container,
-                                guint         border_width)
-{
-  GtkContainerPrivate *priv;
-
-  g_return_if_fail (GTK_IS_CONTAINER (container));
-
-  priv = container->priv;
-
-  if (priv->border_width != border_width)
-    {
-      priv->border_width = border_width;
-      _gtk_container_set_border_width_set (container, TRUE);
-
-      g_object_notify_by_pspec (G_OBJECT (container), container_props[PROP_BORDER_WIDTH]);
-
-      if (_gtk_widget_get_realized (GTK_WIDGET (container)))
-        gtk_widget_queue_resize (GTK_WIDGET (container));
-    }
-}
-
-/**
- * gtk_container_get_border_width:
- * @container: a #GtkContainer
- *
- * Retrieves the border width of the container. See
- * gtk_container_set_border_width().
- *
- * Returns: the current border width
- **/
-guint
-gtk_container_get_border_width (GtkContainer *container)
-{
-  g_return_val_if_fail (GTK_IS_CONTAINER (container), 0);
-
-  return container->priv->border_width;
-}
-
 /**
  * gtk_container_add:
  * @container: a #GtkContainer
@@ -2240,111 +2120,6 @@ gtk_container_resize_children (GtkContainer *container)
   gtk_widget_size_allocate_with_baseline (widget, &allocation, baseline);
 }
 
-static void
-gtk_container_adjust_size_request (GtkWidget         *widget,
-                                   GtkOrientation     orientation,
-                                   gint              *minimum_size,
-                                   gint              *natural_size)
-{
-  GtkContainer *container;
-
-  container = GTK_CONTAINER (widget);
-
-  if (GTK_CONTAINER_GET_CLASS (widget)->_handle_border_width)
-    {
-      int border_width;
-
-      border_width = container->priv->border_width;
-
-      *minimum_size += border_width * 2;
-      *natural_size += border_width * 2;
-    }
-
-  /* chain up last so gtk_widget_set_size_request() values
-   * will have a chance to overwrite our border width.
-   */
-  parent_class->adjust_size_request (widget, orientation,
-                                     minimum_size, natural_size);
-}
-
-static void
-gtk_container_adjust_baseline_request (GtkWidget         *widget,
-                                      gint              *minimum_baseline,
-                                      gint              *natural_baseline)
-{
-  GtkContainer *container;
-
-  container = GTK_CONTAINER (widget);
-
-  if (GTK_CONTAINER_GET_CLASS (widget)->_handle_border_width)
-    {
-      int border_width;
-
-      border_width = container->priv->border_width;
-
-      *minimum_baseline += border_width;
-      *natural_baseline += border_width;
-    }
-
-  parent_class->adjust_baseline_request (widget, minimum_baseline, natural_baseline);
-}
-
-static void
-gtk_container_adjust_size_allocation (GtkWidget         *widget,
-                                      GtkOrientation     orientation,
-                                      gint              *minimum_size,
-                                      gint              *natural_size,
-                                      gint              *allocated_pos,
-                                      gint              *allocated_size)
-{
-  GtkContainer *container;
-  int border_width;
-
-  container = GTK_CONTAINER (widget);
-
-  if (GTK_CONTAINER_GET_CLASS (widget)->_handle_border_width)
-    {
-      border_width = container->priv->border_width;
-
-      *allocated_size -= border_width * 2;
-      *allocated_pos += border_width;
-      *minimum_size -= border_width * 2;
-      *natural_size -= border_width * 2;
-    }
-
-  /* Chain up to GtkWidgetClass *after* removing our border width from
-   * the proposed allocation size. This is because it's possible that the
-   * widget was allocated more space than it needs in a said orientation,
-   * if GtkWidgetClass does any alignments and thus limits the size to the
-   * natural size... then we need that to be done *after* removing any margins
-   * and padding values.
-   */
-  parent_class->adjust_size_allocation (widget, orientation,
-                                        minimum_size, natural_size, allocated_pos,
-                                        allocated_size);
-}
-
-static void
-gtk_container_adjust_baseline_allocation (GtkWidget         *widget,
-                                         gint              *baseline)
-{
-  GtkContainer *container;
-  int border_width;
-
-  container = GTK_CONTAINER (widget);
-
-  if (GTK_CONTAINER_GET_CLASS (widget)->_handle_border_width)
-    {
-      border_width = container->priv->border_width;
-
-      if (*baseline >= 0)
-       *baseline -= border_width;
-    }
-
-  parent_class->adjust_baseline_allocation (widget, baseline);
-}
-
-
 typedef struct {
   gint hfw;
   gint wfh;
@@ -2386,29 +2161,6 @@ gtk_container_get_request_mode (GtkWidget *widget)
        GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH;
 }
 
-/**
- * gtk_container_class_handle_border_width:
- * @klass: the class struct of a #GtkContainer subclass
- *
- * Modifies a subclass of #GtkContainerClass to automatically add and
- * remove the border-width setting on GtkContainer.  This allows the
- * subclass to ignore the border width in its size request and
- * allocate methods. The intent is for a subclass to invoke this
- * in its class_init function.
- *
- * gtk_container_class_handle_border_width() is necessary because it
- * would break API too badly to make this behavior the default. So
- * subclasses must “opt in” to the parent class handling border_width
- * for them.
- */
-void
-gtk_container_class_handle_border_width (GtkContainerClass *klass)
-{
-  g_return_if_fail (GTK_IS_CONTAINER_CLASS (klass));
-
-  klass->_handle_border_width = TRUE;
-}
-
 /**
  * gtk_container_forall: (virtual forall)
  * @container: a #GtkContainer
index ea87bd91c80d160a8d4a133e59a1799fcad800c8..63420cd5bb4c04b5187025cdbeb2c787f7d00848 100644 (file)
@@ -107,8 +107,6 @@ struct _GtkContainerClass
 
   /*< private >*/
 
-  unsigned int _handle_border_width : 1;
-
   /* Padding for future expansion */
   void (*_gtk_reserved1) (void);
   void (*_gtk_reserved2) (void);
@@ -139,11 +137,7 @@ typedef enum
 
 GDK_AVAILABLE_IN_ALL
 GType   gtk_container_get_type          (void) G_GNUC_CONST;
-GDK_AVAILABLE_IN_ALL
-void    gtk_container_set_border_width  (GtkContainer     *container,
-                                         guint             border_width);
-GDK_AVAILABLE_IN_ALL
-guint   gtk_container_get_border_width   (GtkContainer     *container);
+
 GDK_AVAILABLE_IN_ALL
 void    gtk_container_add               (GtkContainer     *container,
                                          GtkWidget        *widget);
@@ -292,9 +286,6 @@ void    gtk_container_forall                     (GtkContainer *container,
                                              GtkCallback   callback,
                                              gpointer      callback_data);
 
-GDK_AVAILABLE_IN_ALL
-void    gtk_container_class_handle_border_width (GtkContainerClass *klass);
-
 GDK_AVAILABLE_IN_ALL
 GtkWidgetPath * gtk_container_get_path_for_child (GtkContainer      *container,
                                                   GtkWidget         *child);
index 7402a6676be4428a1f458df1c588df34d67a7a5c..0681909d51cfcd625958fbb52c939e7f864adbbc 100644 (file)
@@ -39,9 +39,6 @@ gboolean _gtk_container_get_reallocate_redraws (GtkContainer *container);
 
 void      _gtk_container_stop_idle_sizer        (GtkContainer *container);
 void      _gtk_container_maybe_start_idle_sizer (GtkContainer *container);
-gboolean  _gtk_container_get_border_width_set   (GtkContainer *container);
-void      _gtk_container_set_border_width_set   (GtkContainer *container,
-                                                 gboolean      border_width_set);
 void      gtk_container_get_children_clip       (GtkContainer  *container,
                                                  GtkAllocation *out_clip);
 void      gtk_container_set_default_resize_mode (GtkContainer *container,
index ff6fa9f70cd05ec65ff59ded2268bb4b2156dca2..375891e425c5d2c6d1ce4b1102c05c53917be503 100644 (file)
@@ -1021,7 +1021,7 @@ populate_dialog (GtkCustomPaperUnixDialog *dialog)
 {
   GtkCustomPaperUnixDialogPrivate *priv = dialog->priv;
   GtkDialog *cpu_dialog = GTK_DIALOG (dialog);
-  GtkWidget *action_area, *content_area;
+  GtkWidget *content_area;
   GtkWidget *grid, *label, *widget, *frame, *combo;
   GtkWidget *hbox, *vbox, *treeview, *scrolled, *toolbar, *button;
   GtkCellRenderer *cell;
@@ -1033,16 +1033,9 @@ populate_dialog (GtkCustomPaperUnixDialog *dialog)
   GtkStyleContext *context;
 
   content_area = gtk_dialog_get_content_area (cpu_dialog);
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS 
-  action_area = gtk_dialog_get_action_area (cpu_dialog);
-G_GNUC_END_IGNORE_DEPRECATIONS 
-  gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
   gtk_box_set_spacing (GTK_BOX (content_area), 2); /* 2 * 5 + 2 = 12 */
-  gtk_container_set_border_width (GTK_CONTAINER (action_area), 5);
-  gtk_box_set_spacing (GTK_BOX (action_area), 6);
 
   hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 18);
-  gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
   gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE, TRUE);
   gtk_widget_show (hbox);
 
index 0a6fa6c6cd0c12aad89875ce7fca3901b88ab608..0b6538b29272a85510e0b68cf303dc6943a6ca5d 100644 (file)
@@ -575,22 +575,6 @@ gtk_dialog_class_init (GtkDialogClass *class)
                  NULL,
                  G_TYPE_NONE, 0);
 
-  /**
-   * GtkDialog:content-area-border:
-   *
-   * The default border width used around the
-   * content area of the dialog, as returned by
-   * gtk_dialog_get_content_area(), unless gtk_container_set_border_width()
-   * was called on that widget directly.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                          g_param_spec_int ("content-area-border",
-                                                             P_("Content area border"),
-                                                             P_("Width of border around the main dialog area"),
-                                                             0,
-                                                             G_MAXINT,
-                                                             2,
-                                                             GTK_PARAM_READABLE));
   /**
    * GtkDialog:content-area-spacing:
    *
@@ -618,23 +602,6 @@ gtk_dialog_class_init (GtkDialogClass *class)
                                                              6,
                                                              GTK_PARAM_READABLE));
 
-  /**
-   * GtkDialog:action-area-border:
-   *
-   * The default border width used around the
-   * action area of the dialog, as returned by
-   * gtk_dialog_get_action_area(), unless gtk_container_set_border_width()
-   * was called on that widget directly.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_int ("action-area-border",
-                                                             P_("Action area border"),
-                                                             P_("Width of border around the button area at the bottom of the dialog"),
-                                                             0,
-                                                             G_MAXINT,
-                                                             5,
-                                                             GTK_PARAM_READABLE));
-
   /**
    * GtkDialog:use-header-bar:
    *
@@ -673,25 +640,14 @@ static void
 update_spacings (GtkDialog *dialog)
 {
   GtkDialogPrivate *priv = dialog->priv;
-  gint content_area_border;
   gint content_area_spacing;
   gint button_spacing;
-  gint action_area_border;
 
   gtk_widget_style_get (GTK_WIDGET (dialog),
-                        "content-area-border", &content_area_border,
                         "content-area-spacing", &content_area_spacing,
                         "button-spacing", &button_spacing,
-                        "action-area-border", &action_area_border,
                         NULL);
 
-  if (!_gtk_container_get_border_width_set (GTK_CONTAINER (priv->vbox)))
-    {
-      gtk_container_set_border_width (GTK_CONTAINER (priv->vbox),
-                                      content_area_border);
-      _gtk_container_set_border_width_set (GTK_CONTAINER (priv->vbox), FALSE);
-    }
-
   if (!_gtk_box_get_spacing_set (GTK_BOX (priv->vbox)))
     {
       gtk_box_set_spacing (GTK_BOX (priv->vbox), content_area_spacing);
@@ -701,13 +657,6 @@ update_spacings (GtkDialog *dialog)
   /* don't set spacing when buttons are linked */
   if (gtk_button_box_get_layout (GTK_BUTTON_BOX (priv->action_area)) != GTK_BUTTONBOX_EXPAND)
     gtk_box_set_spacing (GTK_BOX (priv->action_area), button_spacing);
-
-  if (!_gtk_container_get_border_width_set (GTK_CONTAINER (priv->action_area)))
-    {
-      gtk_container_set_border_width (GTK_CONTAINER (priv->action_area),
-                                      action_area_border);
-      _gtk_container_set_border_width_set (GTK_CONTAINER (priv->action_area), FALSE);
-    }
 }
 
 static void
index fa4a794f7b8d3df4fc54d5bd856eee720aea79cd..9d30895b79be3405f673622cb87459fff75d7e49 100644 (file)
@@ -2567,7 +2567,6 @@ gtk_entry_ensure_magnifier (GtkEntry *entry)
   gtk_popover_set_modal (GTK_POPOVER (priv->magnifier_popover), FALSE);
   gtk_container_add (GTK_CONTAINER (priv->magnifier_popover),
                      priv->magnifier);
-  gtk_container_set_border_width (GTK_CONTAINER (priv->magnifier_popover), 4);
   gtk_widget_show (priv->magnifier);
 }
 
index dc06847ac992e45249699bb29b6d1fa0ee5d7593..2f921312332ebcb646580fef8f871c3102b59b05 100644 (file)
@@ -91,7 +91,6 @@ gtk_event_box_class_init (GtkEventBoxClass *class)
 {
   GObjectClass *gobject_class = G_OBJECT_CLASS (class);
   GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
-  GtkContainerClass *container_class = GTK_CONTAINER_CLASS (class);
 
   gobject_class->set_property = gtk_event_box_set_property;
   gobject_class->get_property = gtk_event_box_get_property;
@@ -106,8 +105,6 @@ gtk_event_box_class_init (GtkEventBoxClass *class)
   widget_class->size_allocate = gtk_event_box_size_allocate;
   widget_class->draw = gtk_event_box_draw;
 
-  gtk_container_class_handle_border_width (container_class);
-
   g_object_class_install_property (gobject_class,
                                    PROP_VISIBLE_WINDOW,
                                    g_param_spec_boolean ("visible-window",
index 05827a208275c6efcc608b048f36539ac02fd8b9..9be432059d6889fe57f5c3884246e6db5808fd80 100644 (file)
@@ -2681,10 +2681,7 @@ save_widgets_create (GtkFileChooserWidget *impl)
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
   gtk_style_context_add_class (gtk_widget_get_style_context (vbox), "search-bar");
 
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 0);
-
   priv->save_widgets_table = gtk_grid_new ();
-  gtk_container_set_border_width (GTK_CONTAINER (priv->save_widgets_table), 10);
   gtk_box_pack_start (GTK_BOX (vbox), priv->save_widgets_table, FALSE, FALSE);
   gtk_widget_show (priv->save_widgets_table);
   gtk_grid_set_row_spacing (GTK_GRID (priv->save_widgets_table), 12);
index 751e7b347819420ff92f4d946871f5a66a5da41c..2edc2faeb42b54bc77260b1c8a84ea9aec898932 100644 (file)
@@ -140,7 +140,6 @@ gtk_fixed_class_init (GtkFixedClass *class)
   container_class->child_type = gtk_fixed_child_type;
   container_class->set_child_property = gtk_fixed_set_child_property;
   container_class->get_child_property = gtk_fixed_get_child_property;
-  gtk_container_class_handle_border_width (container_class);
 
   gtk_container_class_install_child_property (container_class,
                                               CHILD_PROP_X,
index ed50e5f228922d2dd354066751d5d49677589a79..b3a914b1af7f7ef836aacd252f1b66ccd525be91 100644 (file)
@@ -3798,7 +3798,6 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
   container_class->remove = gtk_flow_box_remove;
   container_class->forall = gtk_flow_box_forall;
   container_class->child_type = gtk_flow_box_child_type;
-  gtk_container_class_handle_border_width (container_class);
 
   class->activate_cursor_child = gtk_flow_box_activate_cursor_child;
   class->toggle_cursor_child = gtk_flow_box_toggle_cursor_child;
index 56fb8c9597d6c464d9a5206846cedecd5ec6e077..2ad519f5e4f7047e91c2d0619da4fbef1aa03a97 100644 (file)
@@ -272,8 +272,6 @@ gtk_frame_class_init (GtkFrameClass *class)
   container_class->remove = gtk_frame_remove;
   container_class->forall = gtk_frame_forall;
 
-  gtk_container_class_handle_border_width (container_class);
-
   class->compute_child_allocation = gtk_frame_real_compute_child_allocation;
 
   gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_FRAME_ACCESSIBLE);
index 357dbb1bc71ee20f85f099142aff258ab527eb9a..31808d036a97ba694a9e048bdfd29ed0213ee069 100644 (file)
@@ -1752,7 +1752,6 @@ gtk_grid_class_init (GtkGridClass *class)
   container_class->child_type = gtk_grid_child_type;
   container_class->set_child_property = gtk_grid_set_child_property;
   container_class->get_child_property = gtk_grid_get_child_property;
-  gtk_container_class_handle_border_width (container_class);
 
   g_object_class_override_property (object_class, PROP_ORIENTATION, "orientation");
 
index f2bde019a6eb98590abe5e84f164da7aeb8c9d47..268eb2086b2fc49c2dc3f0e7156248be76e8edce 100644 (file)
@@ -1984,7 +1984,6 @@ gtk_header_bar_class_init (GtkHeaderBarClass *class)
   container_class->child_type = gtk_header_bar_child_type;
   container_class->set_child_property = gtk_header_bar_set_child_property;
   container_class->get_child_property = gtk_header_bar_get_child_property;
-  gtk_container_class_handle_border_width (container_class);
 
   gtk_container_class_install_child_property (container_class,
                                               CHILD_PROP_PACK_TYPE,
index 1f08ed444fb84829851b737e5399d1053b7764ff..1921dd4edb37f8e32be3536c8ddd662487043d43 100644 (file)
@@ -2628,7 +2628,6 @@ gtk_menu_realize (GtkWidget *widget)
   GdkWindow *window;
   GdkWindowAttr attributes;
   gint attributes_mask;
-  gint border_width;
   GtkWidget *child;
   GList *children;
   GtkBorder arrow_border, padding;
@@ -2657,16 +2656,13 @@ gtk_menu_realize (GtkWidget *widget)
   gtk_widget_register_window (widget, window);
 
   get_menu_padding (widget, &padding);
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
 
   gtk_widget_get_allocation (widget, &allocation);
 
-  attributes.x = border_width + padding.left;
-  attributes.y = border_width + padding.top;
-  attributes.width = allocation.width -
-    (2 * border_width) - padding.left - padding.right;
-  attributes.height = allocation.height -
-    (2 * border_width) - padding.top - padding.bottom;
+  attributes.x = padding.left;
+  attributes.y = padding.top;
+  attributes.width = allocation.width - padding.left - padding.right;
+  attributes.height = allocation.height - padding.top - padding.bottom;
 
   get_arrows_border (menu, &arrow_border);
   attributes.y += arrow_border.top;
@@ -2684,10 +2680,8 @@ gtk_menu_realize (GtkWidget *widget)
 
   attributes.x = 0;
   attributes.y = - priv->scroll_offset;
-  attributes.width = allocation.width + (2 * border_width) +
-    padding.left + padding.right;
-  attributes.height = priv->requested_height - (2 * border_width) +
-    padding.top + padding.bottom;
+  attributes.width = allocation.width + padding.left + padding.right;
+  attributes.height = priv->requested_height + padding.top + padding.bottom;
 
   attributes.width = MAX (1, attributes.width);
   attributes.height = MAX (1, attributes.height);
@@ -2805,7 +2799,6 @@ calculate_line_heights (GtkMenu *menu,
   GtkMenuShell   *menu_shell;
   GtkWidget      *child, *widget;
   GList          *children;
-  guint           border_width;
   guint           n_columns;
   gint            n_heights;
   guint          *min_heights;
@@ -2824,8 +2817,7 @@ calculate_line_heights (GtkMenu *menu,
 
   get_menu_padding (widget, &padding);
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (menu));
-  avail_width -= (border_width) * 2 + padding.left + padding.right;
+  avail_width -= padding.left + padding.right;
 
   for (children = menu_shell->priv->children; children; children = children->next)
     {
@@ -2881,7 +2873,6 @@ gtk_menu_size_allocate (GtkWidget     *widget,
   GList *children;
   gint x, y, i;
   gint width, height;
-  guint border_width;
   GtkBorder arrow_border, padding;
 
   g_return_if_fail (GTK_IS_MENU (widget));
@@ -2894,7 +2885,6 @@ gtk_menu_size_allocate (GtkWidget     *widget,
   gtk_widget_set_allocation (widget, allocation);
 
   get_menu_padding (widget, &padding);
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (menu));
 
   g_free (priv->heights);
   priv->heights_length = calculate_line_heights (menu,
@@ -2903,14 +2893,14 @@ gtk_menu_size_allocate (GtkWidget     *widget,
                                                  NULL);
 
   /* refresh our cached height request */
-  priv->requested_height = (2 * border_width) + padding.top + padding.bottom;
+  priv->requested_height = padding.top + padding.bottom;
   for (i = 0; i < priv->heights_length; i++)
     priv->requested_height += priv->heights[i];
 
-  x = border_width + padding.left;
-  y = border_width + padding.top;
-  width = allocation->width - (2 * border_width) - padding.left - padding.right;
-  height = allocation->height - (2 * border_width) - padding.top - padding.bottom;
+  x = padding.left;
+  y = padding.top;
+  width = allocation->width - padding.left - padding.right;
+  height = allocation->height - padding.top - padding.bottom;
 
   if (menu_shell->priv->active)
     gtk_menu_scroll_to (menu, priv->scroll_offset);
@@ -3077,7 +3067,6 @@ gtk_menu_get_preferred_width (GtkWidget *widget,
   GList          *children;
   guint           max_toggle_size;
   guint           max_accel_width;
-  guint           border_width;
   gint            child_min, child_nat;
   gint            min_width, nat_width;
   GtkBorder       padding;
@@ -3160,9 +3149,8 @@ gtk_menu_get_preferred_width (GtkWidget *widget,
   nat_width *= gtk_menu_get_n_columns (menu);
 
   get_menu_padding (widget, &padding);
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (menu));
-  min_width   += (2 * border_width) + padding.left + padding.right;
-  nat_width   += (2 * border_width) + padding.left + padding.right;
+  min_width   += padding.left + padding.right;
+  nat_width   += padding.left + padding.right;
 
   priv->toggle_size = max_toggle_size;
   priv->accel_size  = max_accel_width;
@@ -3195,14 +3183,12 @@ gtk_menu_get_preferred_height_for_width (GtkWidget *widget,
   GtkMenu        *menu = GTK_MENU (widget);
   GtkMenuPrivate *priv = menu->priv;
   guint          *min_heights, *nat_heights;
-  guint           border_width;
   gint            n_heights, i;
   gint            min_height, single_height, nat_height;
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (menu));
   get_menu_padding (widget, &padding);
 
-  min_height = nat_height = (2 * border_width) + padding.top + padding.bottom;
+  min_height = nat_height = padding.top + padding.bottom;
   single_height = 0;
 
   n_heights =
@@ -3216,8 +3202,7 @@ gtk_menu_get_preferred_height_for_width (GtkWidget *widget,
     }
 
   get_arrows_border (menu, &arrow_border);
-  single_height += (2 * border_width) 
-                   + padding.top + padding.bottom
+  single_height += padding.top + padding.bottom
                    + arrow_border.top + arrow_border.bottom;
   min_height = MIN (min_height, single_height);
 
@@ -3605,7 +3590,6 @@ get_arrows_sensitive_area (GtkMenu      *menu,
   GtkWidget *widget = GTK_WIDGET (menu);
   GdkWindow *window;
   gint width, height;
-  guint border;
   gint win_x, win_y;
   GtkBorder padding;
   gint top_arrow_height, bottom_arrow_height;
@@ -3625,7 +3609,6 @@ get_arrows_sensitive_area (GtkMenu      *menu,
   width = gdk_window_get_width (window);
   height = gdk_window_get_height (window);
 
-  border = gtk_container_get_border_width (GTK_CONTAINER (menu));
   get_menu_padding (widget, &padding);
 
   gdk_window_get_position (window, &win_x, &win_y);
@@ -3635,15 +3618,15 @@ get_arrows_sensitive_area (GtkMenu      *menu,
       upper->x = win_x;
       upper->y = win_y;
       upper->width = width;
-      upper->height = top_arrow_height + border + padding.top;
+      upper->height = top_arrow_height + padding.top;
     }
 
   if (lower)
     {
       lower->x = win_x;
-      lower->y = win_y + height - border - padding.bottom - bottom_arrow_height;
+      lower->y = win_y + height - padding.bottom - bottom_arrow_height;
       lower->width = width;
-      lower->height = bottom_arrow_height + border + padding.bottom;
+      lower->height = bottom_arrow_height + padding.bottom;
     }
 }
 
@@ -4661,7 +4644,6 @@ gtk_menu_scroll_to (GtkMenu *menu,
   GtkWidget *widget;
   gint x, y;
   gint view_width, view_height;
-  gint border_width;
 
   widget = GTK_WIDGET (menu);
 
@@ -4671,13 +4653,11 @@ gtk_menu_scroll_to (GtkMenu *menu,
 
   get_menu_padding (widget, &padding);
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (menu));
+  view_width -= padding.left + padding.right;
+  view_height -= padding.top + padding.bottom;
 
-  view_width -= (2 * border_width) + padding.left + padding.right;
-  view_height -= (2 * border_width) + padding.top + padding.bottom;
-
-  x = border_width + padding.left;
-  y = border_width + padding.top;
+  x = padding.left;
+  y = padding.top;
 
   top_arrow_node = gtk_css_gadget_get_node (priv->top_arrow_gadget);
   gtk_css_node_set_visible (top_arrow_node, priv->upper_arrow_visible);
@@ -4762,8 +4742,7 @@ gtk_menu_scroll_item_visible (GtkMenuShell *menu_shell,
 
       get_menu_padding (widget, &padding);
 
-      height -= 2 * gtk_container_get_border_width (GTK_CONTAINER (menu)) +
-        padding.top + padding.bottom;
+      height -= padding.top + padding.bottom;
 
       if (child_offset < y)
         {
@@ -5072,16 +5051,13 @@ get_visible_size (GtkMenu *menu)
 {
   GtkAllocation allocation;
   GtkWidget *widget = GTK_WIDGET (menu);
-  GtkContainer *container = GTK_CONTAINER (menu);
   GtkBorder padding, arrow_border;
   gint menu_height;
 
   gtk_widget_get_allocation (widget, &allocation);
   get_menu_padding (widget, &padding);
 
-  menu_height = (allocation.height -
-                 (2 * gtk_container_get_border_width (container)) -
-                 padding.top - padding.bottom);
+  menu_height = allocation.height - padding.top - padding.bottom;
 
   get_arrows_border (menu, &arrow_border);
   menu_height -= arrow_border.top;
@@ -5146,8 +5122,7 @@ get_menu_height (GtkMenu *menu)
   get_menu_padding (widget, &padding);
 
   height = priv->requested_height;
-  height -= (gtk_container_get_border_width (GTK_CONTAINER (widget)) * 2) +
-    padding.top + padding.bottom;
+  height -= padding.top + padding.bottom;
 
   get_arrows_border (menu, &arrow_border);
   height -= arrow_border.top;
index f6f771d1cb1a392544df37f3d3bff28c3c38b34f..bdf2ce02142155478b4bfd3b319274af25f2c4a2 100644 (file)
@@ -138,14 +138,12 @@ gtk_menu_bar_class_init (GtkMenuBarClass *class)
   GObjectClass *gobject_class;
   GtkWidgetClass *widget_class;
   GtkMenuShellClass *menu_shell_class;
-  GtkContainerClass *container_class;
 
   GtkBindingSet *binding_set;
 
   gobject_class = (GObjectClass*) class;
   widget_class = (GtkWidgetClass*) class;
   menu_shell_class = (GtkMenuShellClass*) class;
-  container_class = (GtkContainerClass*) class;
 
   gobject_class->get_property = gtk_menu_bar_get_property;
   gobject_class->set_property = gtk_menu_bar_set_property;
@@ -239,7 +237,6 @@ gtk_menu_bar_class_init (GtkMenuBarClass *class)
                                                       GTK_PACK_DIRECTION_LTR,
                                                       GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
 
-  gtk_container_class_handle_border_width (container_class);
   gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_MENU_BAR);
   gtk_widget_class_set_css_name (widget_class, "menubar");
 }
index c4d511f9a5798891b5f6c6a4809d20dfb0b53b9b..efa30591e530d97e18549a4f03bc4d1bcc90e010 100644 (file)
@@ -814,8 +814,6 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
 
   gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_MENU_ITEM_ACCESSIBLE);
   gtk_widget_class_set_css_name (widget_class, "menuitem");
-
-  gtk_container_class_handle_border_width (container_class);
 }
 
 static void
index ed48e85e185743607a0207eea7cb9899009986f7..f55479be6481bdecc490ee3fa88467a4002dde16 100644 (file)
@@ -110,8 +110,6 @@ struct _GtkMessageDialogPrivate
   guint          message_type       : 3;
 };
 
-static void gtk_message_dialog_style_updated (GtkWidget       *widget);
-
 static void gtk_message_dialog_constructed  (GObject          *object);
 static void gtk_message_dialog_set_property (GObject          *object,
                                             guint             prop_id,
@@ -161,23 +159,12 @@ gtk_message_dialog_class_init (GtkMessageDialogClass *class)
   widget_class = GTK_WIDGET_CLASS (class);
   gobject_class = G_OBJECT_CLASS (class);
   
-  widget_class->style_updated = gtk_message_dialog_style_updated;
-
   gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_ALERT);
 
   gobject_class->constructed = gtk_message_dialog_constructed;
   gobject_class->set_property = gtk_message_dialog_set_property;
   gobject_class->get_property = gtk_message_dialog_get_property;
   
-  gtk_widget_class_install_style_property (widget_class,
-                                          g_param_spec_int ("message-border",
-                                                             P_("label border"),
-                                                             P_("Width of border around the label in the message dialog"),
-                                                             0,
-                                                             G_MAXINT,
-                                                             12,
-                                                             GTK_PARAM_READABLE));
-
   /**
    * GtkMessageDialog:message-type:
    *
@@ -323,7 +310,6 @@ gtk_message_dialog_init (GtkMessageDialog *dialog)
   priv->message_type = GTK_MESSAGE_OTHER;
 
   gtk_widget_init_template (GTK_WIDGET (dialog));
-  gtk_message_dialog_style_updated (GTK_WIDGET (dialog));
 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   action_area = gtk_dialog_get_action_area (GTK_DIALOG (dialog));
 G_GNUC_END_IGNORE_DEPRECATIONS
@@ -971,23 +957,3 @@ gtk_message_dialog_add_buttons (GtkMessageDialog* message_dialog,
   g_object_notify (G_OBJECT (message_dialog), "buttons");
 }
 
-static void
-gtk_message_dialog_style_updated (GtkWidget *widget)
-{
-  GtkMessageDialog *dialog = GTK_MESSAGE_DIALOG (widget);
-  GtkWidget *parent;
-  gint border_width;
-
-  parent = gtk_widget_get_parent (dialog->priv->message_area);
-
-  if (parent)
-    {
-      gtk_widget_style_get (widget, "message-border",
-                            &border_width, NULL);
-
-      gtk_container_set_border_width (GTK_CONTAINER (parent),
-                                      MAX (0, border_width - 7));
-    }
-
-  GTK_WIDGET_CLASS (gtk_message_dialog_parent_class)->style_updated (widget);
-}
index 83408448e86c1c49fe2138e249b219fd1af93db5..db8a602181ea4c6f51a5f022d207998ee474770a 100644 (file)
@@ -532,9 +532,7 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 G_GNUC_END_IGNORE_DEPRECATIONS
 
   /* Set the dialog up with HIG properties */
-  gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
   gtk_box_set_spacing (GTK_BOX (content_area), 2); /* 2 * 5 + 2 = 12 */
-  gtk_container_set_border_width (GTK_CONTAINER (action_area), 5);
   gtk_box_set_spacing (GTK_BOX (action_area), 6);
 
   gtk_window_set_resizable (window, FALSE);
@@ -550,7 +548,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS
 
   /* Build contents */
   hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
-  gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
   gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE, TRUE);
 
   icon = gtk_image_new_from_icon_name ("dialog-password",
@@ -1407,7 +1404,6 @@ create_show_processes_dialog (GtkMountOperation *op,
 
   content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
   gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE);
 
   if (secondary != NULL)
index ea120d252379a8edbfa0d384a80741c8b9980bfb..430ac06553b94fbbb4cf063dd5ebae086deacc2f 100644 (file)
@@ -1152,8 +1152,6 @@ gtk_notebook_class_init (GtkNotebookClass *class)
   add_tab_bindings (binding_set, GDK_CONTROL_MASK, GTK_DIR_TAB_FORWARD);
   add_tab_bindings (binding_set, GDK_CONTROL_MASK | GDK_SHIFT_MASK, GTK_DIR_TAB_BACKWARD);
 
-  gtk_container_class_handle_border_width (container_class);
-
   gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_NOTEBOOK_ACCESSIBLE);
   gtk_widget_class_set_css_name (widget_class, "notebook");
 }
index ec2594c7fbb2f371eb4cd224fa79862fcc9e2996..367927ff776f856af4ecfc96766d41639509db78 100644 (file)
@@ -56,13 +56,10 @@ gtk_offscreen_window_get_preferred_width (GtkWidget *widget,
 {
   GtkBin *bin = GTK_BIN (widget);
   GtkWidget *child;
-  gint border_width;
   gint default_width;
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-
-  *minimum = border_width * 2;
-  *natural = border_width * 2;
+  *minimum = 0;
+  *natural = 0;
 
   child = gtk_bin_get_child (bin);
 
@@ -90,13 +87,10 @@ gtk_offscreen_window_get_preferred_height (GtkWidget *widget,
 {
   GtkBin *bin = GTK_BIN (widget);
   GtkWidget *child;
-  gint border_width;
   gint default_height;
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-
-  *minimum = border_width * 2;
-  *natural = border_width * 2;
+  *minimum = 0;
+  *natural = 0;
 
   child = gtk_bin_get_child (bin);
 
@@ -123,12 +117,9 @@ gtk_offscreen_window_size_allocate (GtkWidget *widget,
 {
   GtkBin *bin = GTK_BIN (widget);
   GtkWidget *child;
-  gint border_width;
 
   gtk_widget_set_allocation (widget, allocation);
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-
   if (gtk_widget_get_realized (widget))
     gdk_window_move_resize (gtk_widget_get_window (widget),
                             allocation->x,
@@ -142,10 +133,10 @@ gtk_offscreen_window_size_allocate (GtkWidget *widget,
     {
       GtkAllocation  child_alloc;
 
-      child_alloc.x = border_width;
-      child_alloc.y = border_width;
-      child_alloc.width = allocation->width - 2 * border_width;
-      child_alloc.height = allocation->height - 2 * border_width;
+      child_alloc.x = 0;
+      child_alloc.y = 0;
+      child_alloc.width = allocation->width;
+      child_alloc.height = allocation->height;
 
       gtk_widget_size_allocate (child, &child_alloc);
     }
index 67b39a9b86eb40eb4eb4edec37ac6a112220146e..9dd2edefbe0a469ed25874df7ad09fe546e4e314 100644 (file)
@@ -349,7 +349,6 @@ gtk_paned_class_init (GtkPanedClass *class)
   container_class->set_focus_child = gtk_paned_set_focus_child;
   container_class->set_child_property = gtk_paned_set_child_property;
   container_class->get_child_property = gtk_paned_get_child_property;
-  gtk_container_class_handle_border_width (container_class);
 
   paned_class->cycle_child_focus = gtk_paned_cycle_child_focus;
   paned_class->toggle_handle_focus = gtk_paned_toggle_handle_focus;
index b35c5b35ee16c6bb06b3bd0b0601eb388a4dc744..9b2265fabd01dcbf32ac5a1085a8726433dbe1ee 100644 (file)
@@ -237,7 +237,6 @@ gtk_path_bar_class_init (GtkPathBarClass *path_bar_class)
   container_class->add = gtk_path_bar_add;
   container_class->forall = gtk_path_bar_forall;
   container_class->remove = gtk_path_bar_remove;
-  gtk_container_class_handle_border_width (container_class);
   /* FIXME: */
   /*  container_class->child_type = gtk_path_bar_child_type;*/
 
index 0105800bbfa716ee4267c7d037750a037430972d..a0fae51309c9530a994b8f8d0c31acf4d56696a7 100644 (file)
@@ -569,7 +569,6 @@ populate_servers (GtkPlacesView *view)
 
       grid = g_object_new (GTK_TYPE_GRID,
                            "orientation", GTK_ORIENTATION_VERTICAL,
-                           "border-width", 3,
                            NULL);
 
       /* name of the connected uri, if any */
index 4aee40f7e58286ca6401a3722bc0bfd66213eb24..b2716f5d0fd3149c7a231b44157700297b2c819a 100644 (file)
@@ -1223,19 +1223,16 @@ get_padding_and_border (GtkWidget *widget,
                         GtkBorder *border)
 {
   GtkStyleContext *context;
-  gint border_width;
   GtkBorder tmp;
 
   context = gtk_widget_get_style_context (widget);
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-
   gtk_style_context_get_padding (context, border);
   gtk_style_context_get_border (context, &tmp);
-  border->top += tmp.top + border_width;
-  border->right += tmp.right + border_width;
-  border->bottom += tmp.bottom + border_width;
-  border->left += tmp.left + border_width;
+  border->top += tmp.top;
+  border->right += tmp.right;
+  border->bottom += tmp.bottom;
+  border->left += tmp.left;
 }
 
 static gint
index 8486e72c99a033ef0785cea572c7f03ceb2a72ba..f83db7856ece75688c7e0d610741d99d9ffec8f1 100644 (file)
@@ -127,7 +127,7 @@ static void
 gtk_recent_chooser_dialog_init (GtkRecentChooserDialog *dialog)
 {
   GtkRecentChooserDialogPrivate *priv;
-  GtkWidget *content_area, *action_area;
+  GtkWidget *content_area;
   GtkDialog *rc_dialog = GTK_DIALOG (dialog);
 
   priv = gtk_recent_chooser_dialog_get_instance_private (dialog);
@@ -135,13 +135,8 @@ gtk_recent_chooser_dialog_init (GtkRecentChooserDialog *dialog)
   gtk_dialog_set_use_header_bar_from_setting (GTK_DIALOG (dialog));
 
   content_area = gtk_dialog_get_content_area (rc_dialog);
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-  action_area = gtk_dialog_get_action_area (rc_dialog);
-G_GNUC_END_IGNORE_DEPRECATIONS
 
-  gtk_container_set_border_width (GTK_CONTAINER (rc_dialog), 5);
   gtk_box_set_spacing (GTK_BOX (content_area), 2); /* 2 * 5 + 2 = 12 */
-  gtk_container_set_border_width (GTK_CONTAINER (action_area), 5);
 }
 
 /* we intercept the GtkRecentChooser::item_activated signal and try to
@@ -213,7 +208,6 @@ gtk_recent_chooser_dialog_constructed (GObject *object)
 
   content_area = gtk_dialog_get_content_area (GTK_DIALOG (object));
 
-  gtk_container_set_border_width (GTK_CONTAINER (priv->chooser), 5);
   gtk_box_pack_start (GTK_BOX (content_area),
                       priv->chooser, TRUE, TRUE);
   gtk_widget_show (priv->chooser);
index 27f467779da48c604052b69ef03e0ee15ea0cbe1..7806c866d14101781d81fbbd39c77f25c99b500e 100644 (file)
@@ -556,7 +556,6 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
   container_class->add = gtk_scrolled_window_add;
   container_class->remove = gtk_scrolled_window_remove;
   container_class->forall = gtk_scrolled_window_forall;
-  gtk_container_class_handle_border_width (container_class);
 
   class->scroll_child = gtk_scrolled_window_scroll_child;
   class->move_focus_out = gtk_scrolled_window_move_focus_out;
index 2ec177d29ad6a938d88b224fe65816d8cbb0ea35..4fe60414dbe77aceb0b8ba4a5a7d12057e8499f5 100644 (file)
@@ -428,7 +428,6 @@ gtk_shortcuts_section_init (GtkShortcutsSection *self)
   gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_VERTICAL);
   gtk_box_set_homogeneous (GTK_BOX (self), FALSE);
   gtk_box_set_spacing (GTK_BOX (self), 22);
-  gtk_container_set_border_width (GTK_CONTAINER (self), 24);
 
   self->stack = g_object_new (GTK_TYPE_STACK,
                               "homogeneous", TRUE,
index 1e1bf8f6f268eeb4b6d6fc95c80ef4ca023a820e..4f40231267fec7456d48fcee420606ef449b6594 100644 (file)
@@ -963,7 +963,6 @@ gtk_shortcuts_window_init (GtkShortcutsWindow *self)
   G_GNUC_END_IGNORE_DEPRECATIONS;
 
   priv->popover = g_object_new (GTK_TYPE_POPOVER,
-                                "border-width", 6,
                                 "relative-to", priv->menu_button,
                                 "position", GTK_POS_BOTTOM,
                                 NULL);
@@ -1002,7 +1001,6 @@ gtk_shortcuts_window_init (GtkShortcutsWindow *self)
                            "visible", TRUE,
                            NULL);
   box = g_object_new (GTK_TYPE_BOX,
-                      "border-width", 24,
                       "halign", GTK_ALIGN_CENTER,
                       "spacing", 24,
                       "orientation", GTK_ORIENTATION_VERTICAL,
index fe4190e251a15980dece59f77b8d7a542b07a595..a06d4cc2b8df58fc08f82eaf01c91bbe84e3c8ae 100644 (file)
  *   adjustment = gtk_adjustment_new (50.0, 0.0, 100.0, 1.0, 5.0, 0.0);
  *
  *   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- *   gtk_container_set_border_width (GTK_CONTAINER (window), 5);
  *
  *   // creates the spinbutton, with no decimal places
  *   button = gtk_spin_button_new (adjustment, 1.0, 0);
  *   adjustment = gtk_adjustment_new (2.500, 0.0, 5.0, 0.001, 0.1, 0.0);
  *
  *   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- *   gtk_container_set_border_width (GTK_CONTAINER (window), 5);
  *
  *   // creates the spinbutton, with three decimal places
  *   button = gtk_spin_button_new (adjustment, 0.001, 3);
index ca3e4e43e1b200d230c61f27f057f14e0028be84..44fbe2068b34bbfbbfb7e108703395062aa3e407 100644 (file)
@@ -452,7 +452,6 @@ gtk_stack_class_init (GtkStackClass *klass)
   container_class->forall = gtk_stack_forall;
   container_class->set_child_property = gtk_stack_set_child_property;
   container_class->get_child_property = gtk_stack_get_child_property;
-  gtk_container_class_handle_border_width (container_class);
 
   stack_props[PROP_HOMOGENEOUS] =
       g_param_spec_boolean ("homogeneous", P_("Homogeneous"), P_("Homogeneous sizing"),
index 84b6599d4fa06737a35bf37eb88ba2c980847c05..c4ee2228a007ecda8da8e69608a6f51e510f5d1a 100644 (file)
@@ -1802,7 +1802,6 @@ _gtk_text_view_ensure_magnifier (GtkTextView *text_view)
   gtk_popover_set_modal (GTK_POPOVER (priv->magnifier_popover), FALSE);
   gtk_container_add (GTK_CONTAINER (priv->magnifier_popover),
                      priv->magnifier);
-  gtk_container_set_border_width (GTK_CONTAINER (priv->magnifier_popover), 4);
   gtk_widget_show (priv->magnifier);
 }
 
@@ -3976,7 +3975,6 @@ gtk_text_view_size_request (GtkWidget      *widget,
   GtkTextView *text_view;
   GtkTextViewPrivate *priv;
   GSList *tmp_list;
-  guint border_width;
 
   text_view = GTK_TEXT_VIEW (widget);
   priv = text_view->priv;
@@ -4007,10 +4005,6 @@ gtk_text_view_size_request (GtkWidget      *widget,
   if (priv->bottom_window)
     requisition->height += priv->bottom_window->requisition.height;
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (text_view));
-  requisition->width += border_width * 2;
-  requisition->height += border_width * 2;
-
   requisition->height += priv->top_border + priv->bottom_border;
   requisition->width += priv->left_border + priv->right_border;
 
@@ -4231,7 +4225,6 @@ gtk_text_view_size_allocate (GtkWidget *widget,
   GdkRectangle right_rect;
   GdkRectangle top_rect;
   GdkRectangle bottom_rect;
-  guint border_width;
   gboolean size_changed;
   
   text_view = GTK_TEXT_VIEW (widget);
@@ -4247,8 +4240,6 @@ gtk_text_view_size_allocate (GtkWidget *widget,
     widget_allocation.width != allocation->width ||
     widget_allocation.height != allocation->height;
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (text_view));
-
   gtk_widget_set_allocation (widget, allocation);
 
   if (gtk_widget_get_realized (widget))
@@ -4262,7 +4253,7 @@ gtk_text_view_size_allocate (GtkWidget *widget,
    * windows get at least a 1x1 allocation.
    */
 
-  width = allocation->width - border_width * 2;
+  width = allocation->width;
 
   if (priv->left_window)
     left_rect.width = priv->left_window->requisition.width;
@@ -4283,7 +4274,7 @@ gtk_text_view_size_allocate (GtkWidget *widget,
   top_rect.width = text_rect.width;
   bottom_rect.width = text_rect.width;
 
-  height = allocation->height - border_width * 2;
+  height = allocation->height;
 
   if (priv->top_window)
     top_rect.height = priv->top_window->requisition.height;
@@ -4305,8 +4296,8 @@ gtk_text_view_size_allocate (GtkWidget *widget,
   right_rect.height = text_rect.height;
 
   /* Origins */
-  left_rect.x = border_width;
-  top_rect.y = border_width;
+  left_rect.x = 0;
+  top_rect.y = 0;
 
   text_rect.x = left_rect.x + left_rect.width;
   text_rect.y = top_rect.y + top_rect.height;
index 71913da069424201cf452b5efbcea92fff4636e4..e7f270dde62a12a8ba2126d7374cd1f42d64986a 100644 (file)
@@ -433,8 +433,6 @@ gtk_toolbar_class_init (GtkToolbarClass *klass)
   container_class->get_child_property = gtk_toolbar_get_child_property;
   container_class->set_child_property = gtk_toolbar_set_child_property;
 
-  gtk_container_class_handle_border_width (container_class);
-
   klass->orientation_changed = gtk_toolbar_orientation_changed;
   klass->style_changed = gtk_toolbar_real_style_changed;
   
index c877985496df4a3d6df1f55bad27ac0b6f451661..0c59eae158f7a8539cbc49b61ce4e665c6047bf5 100644 (file)
@@ -169,8 +169,6 @@ gtk_tool_item_class_init (GtkToolItemClass *klass)
   widget_class->size_allocate = gtk_tool_item_size_allocate;
   widget_class->parent_set    = gtk_tool_item_parent_set;
 
-  gtk_container_class_handle_border_width (GTK_CONTAINER_CLASS (klass));
-
   klass->create_menu_proxy = _gtk_tool_item_create_menu_proxy;
   
   g_object_class_install_property (object_class,
index 38fedeb4d25d6ef9d5ec4fe3a27b7da75acdd0bb..6dd15717a2e0f35afd240d1886cf204d50aee155 100644 (file)
@@ -582,7 +582,6 @@ gtk_tool_item_group_size_request (GtkWidget      *widget,
   GtkOrientation orientation;
   GtkRequisition item_size;
   gint requested_rows;
-  guint border_width;
 
   if (priv->children && gtk_tool_item_group_get_label_widget (group))
     {
@@ -604,10 +603,6 @@ gtk_tool_item_group_size_request (GtkWidget      *widget,
     requisition->width = MAX (requisition->width, item_size.width);
   else
     requisition->height = MAX (requisition->height, item_size.height * requested_rows);
-
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-  requisition->width += border_width * 2;
-  requisition->height += border_width * 2;
 }
 
 static void
@@ -679,9 +674,7 @@ gtk_tool_item_group_real_size_query (GtkWidget      *widget,
   GtkOrientation orientation;
 
   gint min_rows;
-  guint border_width;
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
   orientation = gtk_tool_shell_get_orientation (GTK_TOOL_SHELL (group));
 
   /* figure out the size of homogeneous items */
@@ -713,7 +706,7 @@ gtk_tool_item_group_real_size_query (GtkWidget      *widget,
           gint row = -1;
           guint col = 0;
 
-          item_area.width = allocation->width - 2 * border_width;
+          item_area.width = allocation->width;
           n_columns = MAX (item_area.width / item_size.width, 1);
 
           /* calculate required rows for n_columns columns */
@@ -770,7 +763,7 @@ gtk_tool_item_group_real_size_query (GtkWidget      *widget,
           guint col = 0, min_col, max_col = 0, all_items = 0;
           gint i;
 
-          item_area.height = allocation->height - 2 * border_width;
+          item_area.height = allocation->height;
           n_rows = MAX (item_area.height / item_size.height, min_rows);
 
           row_min_width = g_new0 (guint, n_rows);
@@ -907,8 +900,8 @@ gtk_tool_item_group_real_size_query (GtkWidget      *widget,
     }
 
   /* report effective widget size */
-  inquery->width += item_area.width + 2 * border_width;
-  inquery->height += item_area.height + 2 * border_width;
+  inquery->width += item_area.width;
+  inquery->height += item_area.height;
 }
 
 static void
@@ -929,11 +922,8 @@ gtk_tool_item_group_real_size_allocate (GtkWidget     *widget,
 
   gint n_columns, n_rows = 1;
   gint min_rows;
-  guint border_width;
   GtkTextDirection direction;
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-
   direction = gtk_widget_get_direction (widget);
 
   orientation = gtk_tool_shell_get_orientation (GTK_TOOL_SHELL (group));
@@ -941,8 +931,8 @@ gtk_tool_item_group_real_size_allocate (GtkWidget     *widget,
   /* chain up */
   GTK_WIDGET_CLASS (gtk_tool_item_group_parent_class)->size_allocate (widget, allocation);
 
-  child_allocation.x = border_width;
-  child_allocation.y = border_width;
+  child_allocation.x = 0;
+  child_allocation.y = 0;
 
   /* place the header widget */
   if (gtk_widget_get_visible (priv->header))
@@ -961,7 +951,7 @@ gtk_tool_item_group_real_size_allocate (GtkWidget     *widget,
           child_allocation.height = allocation->height;
 
           if (GTK_TEXT_DIR_RTL == direction)
-            child_allocation.x = allocation->width - border_width - child_allocation.width;
+            child_allocation.x = allocation->width - child_allocation.width;
         }
 
       gtk_widget_size_allocate (priv->header, &child_allocation);
@@ -971,7 +961,7 @@ gtk_tool_item_group_real_size_allocate (GtkWidget     *widget,
       else if (GTK_TEXT_DIR_RTL != direction)
         child_allocation.x += child_allocation.width;
       else
-        child_allocation.x = border_width;
+        child_allocation.x = 0;
     }
   else
     child_requisition.width = child_requisition.height = 0;
@@ -987,8 +977,8 @@ gtk_tool_item_group_real_size_allocate (GtkWidget     *widget,
     {
       item_size.width = MIN (item_size.width, allocation->width);
 
-      item_area.width = allocation->width - 2 * border_width;
-      item_area.height = allocation->height - 2 * border_width - child_requisition.height;
+      item_area.width = allocation->width;
+      item_area.height = allocation->height - child_requisition.height;
 
       n_columns = MAX (item_area.width / item_size.width, 1);
 
@@ -998,8 +988,8 @@ gtk_tool_item_group_real_size_allocate (GtkWidget     *widget,
     {
       item_size.height = MIN (item_size.height, allocation->height);
 
-      item_area.width = allocation->width - 2 * border_width - child_requisition.width;
-      item_area.height = allocation->height - 2 * border_width;
+      item_area.width = allocation->width - child_requisition.width;
+      item_area.height = allocation->height;
 
       n_columns = MAX (item_area.width / item_size.width, 1);
       n_rows = MAX (item_area.height / item_size.height, min_rows);
@@ -1242,18 +1232,16 @@ gtk_tool_item_group_realize (GtkWidget *widget)
   GdkWindow *window;
   GdkWindowAttr attributes;
   gint attributes_mask;
-  guint border_width;
 
   gtk_widget_set_realized (widget, TRUE);
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
   gtk_widget_get_allocation (widget, &allocation);
 
   attributes.window_type = GDK_WINDOW_CHILD;
-  attributes.x = allocation.x + border_width;
-  attributes.y = allocation.y + border_width;
-  attributes.width = allocation.width - border_width * 2;
-  attributes.height = allocation.height - border_width * 2;
+  attributes.x = allocation.x;
+  attributes.y = allocation.y;
+  attributes.width = allocation.width;
+  attributes.height = allocation.height;
   attributes.wclass = GDK_INPUT_OUTPUT;
   attributes.event_mask = gtk_widget_get_events (widget)
                          | GDK_VISIBILITY_NOTIFY_MASK
index a5258233c58ad052e0ffc078d055cb2645ed8dca..93481bf0f56365072cd937cb065bd6730966cecc 100644 (file)
@@ -420,11 +420,8 @@ gtk_tool_palette_size_request (GtkWidget      *widget,
 {
   GtkToolPalette *palette = GTK_TOOL_PALETTE (widget);
   GtkRequisition child_requisition;
-  guint border_width;
   guint i;
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-
   requisition->width = 0;
   requisition->height = 0;
 
@@ -449,9 +446,6 @@ gtk_tool_palette_size_request (GtkWidget      *widget,
           requisition->height = MAX (requisition->height, child_requisition.height);
         }
     }
-
-  requisition->width += border_width * 2;
-  requisition->height += border_width * 2;
 }
 
 static void
@@ -494,7 +488,6 @@ gtk_tool_palette_size_allocate (GtkWidget     *widget,
   gint total_size, page_size;
   gint offset = 0;
   guint i;
-  guint border_width;
 
   gint min_offset = -1, max_offset = -1;
 
@@ -503,7 +496,6 @@ gtk_tool_palette_size_allocate (GtkWidget     *widget,
   gint *group_sizes = g_newa (gint, palette->priv->groups->len);
   GtkTextDirection direction;
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
   direction = gtk_widget_get_direction (widget);
 
   GTK_WIDGET_CLASS (gtk_tool_palette_parent_class)->size_allocate (widget, allocation);
@@ -526,9 +518,9 @@ gtk_tool_palette_size_allocate (GtkWidget     *widget,
     offset = -offset;
 
   if (GTK_ORIENTATION_VERTICAL == palette->priv->orientation)
-    child_allocation.width = allocation->width - border_width * 2;
+    child_allocation.width = allocation->width;
   else
-    child_allocation.height = allocation->height - border_width * 2;
+    child_allocation.height = allocation->height;
 
   if (GTK_ORIENTATION_VERTICAL == palette->priv->orientation)
     remaining_space = allocation->height;
@@ -613,8 +605,8 @@ gtk_tool_palette_size_allocate (GtkWidget     *widget,
   if (remaining_space > 0)
     offset = 0;
 
-  x = border_width;
-  child_allocation.y = border_width;
+  x = 0;
+  child_allocation.y = 0;
 
   if (GTK_ORIENTATION_VERTICAL == palette->priv->orientation)
     child_allocation.y -= offset;
@@ -664,14 +656,12 @@ gtk_tool_palette_size_allocate (GtkWidget     *widget,
 
   if (GTK_ORIENTATION_VERTICAL == palette->priv->orientation)
     {
-      child_allocation.y += border_width;
       child_allocation.y += offset;
 
       total_size = child_allocation.y;
     }
   else
     {
-      x += border_width;
       x += offset;
 
       total_size = x;
@@ -716,19 +706,16 @@ gtk_tool_palette_realize (GtkWidget *widget)
   GdkWindow *window;
   GdkWindowAttr attributes;
   gint attributes_mask;
-  guint border_width;
 
   gtk_widget_set_realized (widget, TRUE);
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-
   gtk_widget_get_allocation (widget, &allocation);
 
   attributes.window_type = GDK_WINDOW_CHILD;
-  attributes.x = allocation.x + border_width;
-  attributes.y = allocation.y + border_width;
-  attributes.width = allocation.width - border_width * 2;
-  attributes.height = allocation.height - border_width * 2;
+  attributes.x = allocation.x;
+  attributes.y = allocation.y;
+  attributes.width = allocation.width;
+  attributes.height = allocation.height;
   attributes.wclass = GDK_INPUT_OUTPUT;
   attributes.event_mask = gtk_widget_get_events (widget)
                          | GDK_VISIBILITY_NOTIFY_MASK
index d03e47e13fb630b63c597fe3ee64ea1d059ffe06..70dda49a8576eec1d0efae5a6b46d3f88f2f4863 100644 (file)
@@ -11203,7 +11203,6 @@ gtk_tree_view_ensure_interactive_directory (GtkTreeView *tree_view)
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
   gtk_widget_show (vbox);
   gtk_container_add (GTK_CONTAINER (frame), vbox);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 3);
 
   /* add entry */
   tree_view->priv->search_entry = gtk_entry_new ();
index 1f7b4949e8af7fedbf86357a2ba6079285dd2524..ff6ffbae3204dadb8bcfe67cfadbf784efb64b7c 100644 (file)
@@ -394,7 +394,6 @@ gtk_viewport_class_init (GtkViewportClass *class)
 
   container_class->remove = gtk_viewport_remove;
   container_class->add = gtk_viewport_add;
-  gtk_container_class_handle_border_width (container_class);
 
   /* GtkScrollable implementation */
   g_object_class_override_property (gobject_class, PROP_HADJUSTMENT,    "hadjustment");
index 9a329cc9bba522bc216d439f2f21fb657902d257..93ad17120d7af2043caf7c14c5fc38bf7fa9baa6 100644 (file)
@@ -7294,7 +7294,6 @@ _gtk_window_set_allocation (GtkWindow           *window,
   GtkWidget *widget = (GtkWidget *)window;
   GtkWindowPrivate *priv = window->priv;
   GtkAllocation child_allocation;
-  gint border_width;
   GtkBorder window_border = { 0 };
   GList *link;
 
@@ -7356,12 +7355,6 @@ _gtk_window_set_allocation (GtkWindow           *window,
                               allocation->width, allocation->height);
     }
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (window));
-  child_allocation.x += border_width;
-  child_allocation.y += border_width;
-  child_allocation.width = MAX (1, child_allocation.width - border_width * 2);
-  child_allocation.height = MAX (1, child_allocation.height - border_width * 2);
-
   *allocation_out = child_allocation;
 
   link = priv->popovers;
@@ -8174,7 +8167,6 @@ gtk_window_get_preferred_width (GtkWidget *widget,
   GtkWindow *window;
   GtkWidget *child;
   GtkWindowPrivate *priv;
-  guint border_width;
   gint title_min = 0, title_nat = 0;
   gint child_min = 0, child_nat = 0;
   GtkBorder window_border = { 0 };
@@ -8185,8 +8177,6 @@ gtk_window_get_preferred_width (GtkWidget *widget,
   child  = gtk_bin_get_child (GTK_BIN (window));
   has_size_request = gtk_widget_has_size_request (widget);
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (window));
-
   if (priv->decorated &&
       !priv->fullscreen)
     {
@@ -8208,10 +8198,8 @@ gtk_window_get_preferred_width (GtkWidget *widget,
 
       if (child_nat == 0 && !has_size_request)
         child_nat = NO_CONTENT_CHILD_NAT;
-      child_min += border_width * 2 +
-                   window_border.left + window_border.right;
-      child_nat += border_width * 2 +
-                   window_border.left + window_border.right;
+      child_min += window_border.left + window_border.right;
+      child_nat += window_border.left + window_border.right;
     }
   else if (!has_size_request)
     {
@@ -8232,7 +8220,6 @@ gtk_window_get_preferred_width_for_height (GtkWidget *widget,
   GtkWindow *window;
   GtkWidget *child;
   GtkWindowPrivate *priv;
-  guint border_width;
   gint title_min = 0, title_nat = 0;
   gint child_min = 0, child_nat = 0;
   gint title_height = 0;
@@ -8244,10 +8231,6 @@ gtk_window_get_preferred_width_for_height (GtkWidget *widget,
   child  = gtk_bin_get_child (GTK_BIN (window));
   has_size_request = gtk_widget_has_size_request (widget);
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (window));
-
-  height -= 2 * border_width;
-
   if (priv->decorated &&
       !priv->fullscreen)
     {
@@ -8279,10 +8262,8 @@ gtk_window_get_preferred_width_for_height (GtkWidget *widget,
 
       if (child_nat == 0 && height == 0 && !has_size_request)
         child_nat = NO_CONTENT_CHILD_NAT;
-      child_min += border_width * 2 +
-                   window_border.left + window_border.right;
-      child_nat += border_width * 2 +
-                   window_border.left + window_border.right;
+      child_min += window_border.left + window_border.right;
+      child_nat += window_border.left + window_border.right;
     }
   else if (!has_size_request)
     {
@@ -8301,7 +8282,6 @@ gtk_window_get_preferred_height (GtkWidget *widget,
   GtkWindow *window;
   GtkWindowPrivate *priv;
   GtkWidget *child;
-  guint border_width;
   int title_min = 0;
   int title_height = 0;
   GtkBorder window_border = { 0 };
@@ -8315,8 +8295,6 @@ gtk_window_get_preferred_height (GtkWidget *widget,
   *minimum_size = 0;
   *natural_size = 0;
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (window));
-
   if (priv->decorated &&
       !priv->fullscreen)
     {
@@ -8343,8 +8321,8 @@ gtk_window_get_preferred_height (GtkWidget *widget,
 
       if (child_nat == 0 && !has_size_request)
         child_nat = NO_CONTENT_CHILD_NAT;
-      *minimum_size += child_min + 2 * border_width;
-      *natural_size += child_nat + 2 * border_width;
+      *minimum_size += child_min;
+      *natural_size += child_nat;
     }
   else if (!has_size_request)
     {
@@ -8362,7 +8340,6 @@ gtk_window_get_preferred_height_for_width (GtkWidget *widget,
   GtkWindow *window;
   GtkWindowPrivate *priv;
   GtkWidget *child;
-  guint border_width;
   int title_min = 0;
   int title_height = 0;
   GtkBorder window_border = { 0 };
@@ -8376,10 +8353,6 @@ gtk_window_get_preferred_height_for_width (GtkWidget *widget,
   *minimum_size = 0;
   *natural_size = 0;
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (window));
-
-  width -= 2 * border_width;
-
   if (priv->decorated &&
       !priv->fullscreen)
     {
@@ -8410,8 +8383,8 @@ gtk_window_get_preferred_height_for_width (GtkWidget *widget,
 
       if (child_nat == 0 && width == 0 && !has_size_request)
         child_nat = NO_CONTENT_CHILD_NAT;
-      *minimum_size += child_min + 2 * border_width;
-      *natural_size += child_nat + 2 * border_width;
+      *minimum_size += child_min;
+      *natural_size += child_nat;
     }
   else if (!has_size_request)
     {
index 9dca96d3c7f1f6c66233442280d28106f1ae5b77..aaa9ac20f8ebeb0e64730517c2f3e1375170d29e 100644 (file)
@@ -6,7 +6,6 @@
     <property name="icon-name">help-about</property>
   </object>
   <template class="GtkAboutDialog" parent="GtkDialog">
-    <property name="border-width">5</property>
     <property name="resizable">0</property>
     <property name="type-hint">dialog</property>
     <child internal-child="headerbar">
@@ -28,7 +27,6 @@
         <child>
           <object class="GtkBox" id="box">
             <property name="visible">1</property>
-            <property name="border-width">5</property>
             <property name="orientation">vertical</property>
             <property name="spacing">12</property>
             <child>
                                 <property name="visible">1</property>
                                 <property name="halign">center</property>
                                 <property name="valign">start</property>
-                                <property name="border-width">5</property>
                                 <property name="orientation">vertical</property>
                                 <property name="row-spacing">2</property>
                                 <property name="column-spacing">8</property>
index f3d250df06154547b95bdfd2127eba9c42e74d4a..0bcc50ae107f69b2ec9989dbe01482a8801eeef6 100644 (file)
@@ -2,7 +2,6 @@
 <interface domain="gtk30">
   <!-- interface-requires gtk+ 3.10 -->
   <template class="GtkColorChooserDialog" parent="GtkDialog">
-    <property name="border-width">5</property>
     <property name="title" translatable="yes">Select a Color</property>
     <property name="type-hint">dialog</property>
     <property name="resizable">0</property>
@@ -13,7 +12,6 @@
         <child>
           <object class="GtkColorChooserWidget" id="chooser">
             <property name="visible">1</property>
-            <property name="border-width">5</property>
             <property name="orientation">vertical</property>
             <property name="rgba">rgb(255,255,255)</property>
             <signal name="color-activated" handler="color_activated_cb" swapped="no"/>
index 0d88249de7065f7cd3589b50e2c283e4aaebb82e..214cbd4597fcc040a7de1b332842a8ee436598d2 100644 (file)
@@ -15,7 +15,6 @@
       <object class="GtkBox" id="vbox">
         <property name="visible">1</property>
         <property name="orientation">vertical</property>
-        <property name="border-width">0</property>
         <style>
           <class name="dialog-vbox"/>
         </style>
index 9315717e79b91b395f60e01be4383aac51a5d05b..9cf195dad0a72b5d3e6a8712f8ac992f71312eb4 100644 (file)
@@ -9,10 +9,8 @@
     <child internal-child="vbox">
       <object class="GtkBox" id="dialog-vbox1">
         <property name="orientation">vertical</property>
-        <property name="border-width">0</property>
         <child internal-child="action_area">
           <object class="GtkButtonBox" id="dialog-action_area1">
-            <property name="border-width">6</property>
             <property name="layout-style">end</property>
           </object>
           <packing>
index b42c2ccae25f5b79aa35952afd9c7d8acacfcebd..42545de942d99d97c934e5d46cb6c06b2dd6683e 100644 (file)
@@ -54,7 +54,6 @@
                               <object class="GtkBox">
                                 <property name="visible">1</property>
                                 <property name="spacing">6</property>
-                                <property name="border-width">6</property>
                                 <child>
                                   <object class="GtkPathBar" id="browse_path_bar">
                                     <property name="visible">True</property>
@@ -94,7 +93,6 @@
                                 <property name="visible">1</property>
                                 <property name="no-show-all">1</property>
                                 <property name="spacing">6</property>
-                                <property name="border-width">6</property>
                               </object>
                               <packing>
                                 <property name="name">location</property>
                                 <property name="visible">1</property>
                                 <property name="no-show-all">1</property>
                                 <property name="spacing">6</property>
-                                <property name="border-width">6</property>
                                 <child type="center">
                                   <object class="GtkSearchEntry" id="search_entry">
                                     <property name="visible">1</property>
index 96891031d8416647a826d72de8ebb9e6c04694f7..78e766dc22fc2d845e6708e89facdf334b650d08 100644 (file)
@@ -2,7 +2,6 @@
 <interface domain="gtk30">
   <!-- interface-requires gtk+ 3.10 -->
   <template class="GtkFontChooserDialog" parent="GtkDialog">
-    <property name="border-width">5</property>
     <property name="title" translatable="yes">Select Font</property>
     <property name="type-hint">dialog</property>
     <child internal-child="vbox">
@@ -12,7 +11,6 @@
         <child>
           <object class="GtkFontChooserWidget" id="fontchooser">
             <property name="visible">1</property>
-            <property name="border-width">5</property>
             <property name="orientation">vertical</property>
             <property name="spacing">6</property>
             <signal name="font-activated" handler="font_activated_cb" swapped="no"/>
index f8c57b029524e600c96cc9590dbcacac5a52bfb4..f3bacb27149a335ec182905e30036b7e511d7368 100644 (file)
@@ -11,7 +11,6 @@
             <child>
               <object class="GtkBox" id="content_area">
                 <property name="visible">1</property>
-                <property name="border-width">8</property>
                 <property name="spacing">16</property>
                 <property name="hexpand">1</property>
               </object>
@@ -22,7 +21,6 @@
             <child>
               <object class="GtkButtonBox" id="action_area">
                 <property name="visible">1</property>
-                <property name="border-width">6</property>
                 <property name="spacing">6</property>
                 <property name="layout-style">end</property>
               </object>
@@ -33,7 +31,6 @@
             <child>
               <object class="GtkButton" id="close_button">
                 <property name="can-focus">1</property>
-                <property name="border-width">6</property>
                 <property name="relief">none</property>
                 <property name="valign">center</property>
                 <style>
index bc3532f46c139f54a4b27f2cf9895ccfdb069cf5..ed0626c781fe07300d03344e96cc9b0c2216667e 100644 (file)
@@ -15,7 +15,6 @@
       <object class="GtkBox" id="dialog-vbox1">
         <property name="orientation">vertical</property>
         <property name="spacing">20</property>
-        <property name="border-width">0</property>
         <child>
           <object class="GtkBox" id="box">
             <property name="visible">1</property>
index ae52ba014728be628de67c3089e6fc325dc19fd2..0954cd590b5f55f16a84679268bdfe446434c3c5 100644 (file)
@@ -25,7 +25,6 @@
   </object>
   <template class="GtkPageSetupUnixDialog" parent="GtkDialog">
     <property name="can-focus">False</property>
-    <property name="border-width">5</property>
     <property name="resizable">False</property>
     <property name="type-hint">dialog</property>
     <property name="title" translatable="yes">Page Setup</property>
@@ -36,7 +35,6 @@
         <child>
           <object class="GtkGrid" id="grid1">
             <property name="visible">1</property>
-            <property name="border-width">5</property>
             <property name="row-spacing">6</property>
             <property name="column-spacing">12</property>
             <child>
index 97740498522e0e9fa8504ade8eb3599fffc0f87f..2765d08feb828ef1ee389cdceb81601503ee61c4 100644 (file)
@@ -20,7 +20,6 @@
     <child>
       <object class="GtkBox">
         <property name="visible">1</property>
-        <property name="border-width">18</property>
         <property name="orientation">vertical</property>
         <property name="spacing">6</property>
         <child>
         <child>
           <object class="GtkBox">
             <property name="visible">1</property>
-            <property name="border-width">12</property>
             <property name="orientation">vertical</property>
             <property name="spacing">12</property>
             <child>
index 0d14d4095d64b836b87ea11c493f9ef66158a629..11aae486a9a8bd4cc8db8ba718c05e315b809d68 100644 (file)
@@ -56,7 +56,6 @@
       <object class="GtkBox" id="dialog-vbox1">
         <property name="orientation">vertical</property>
         <property name="spacing">2</property>
-        <property name="border-width">0</property>
         <style>
           <class name="view"/>
         </style>
@@ -72,7 +71,6 @@
                 <child>
                   <object class="GtkBox" id="general_main_box">
                     <property name="visible">1</property>
-                    <property name="border-width">12</property>
                     <property name="orientation">vertical</property>
                     <property name="spacing">18</property>
                     <child>
                 <child>
                   <object class="GtkBox" id="page_setup_main_box">
                     <property name="visible">1</property>
-                    <property name="border-width">12</property>
                     <property name="orientation">vertical</property>
                     <property name="spacing">18</property>
                     <child>
                 </child>
                 <child>
                   <object class="GtkGrid" id="job_page">
-                    <property name="border-width">12</property>
                     <property name="row-spacing">18</property>
                     <property name="column-spacing">18</property>
                     <child>
                         <child>
                           <object class="GtkGrid" id="image_quality_table">
                             <property name="visible">1</property>
-                            <property name="border-width">12</property>
                             <property name="row-spacing">6</property>
                             <property name="column-spacing">12</property>
                           </object>
                         <child>
                           <object class="GtkGrid" id="color_table">
                             <property name="visible">1</property>
-                            <property name="border-width">12</property>
                             <property name="row-spacing">6</property>
                             <property name="column-spacing">12</property>
                           </object>
                         <child>
                           <object class="GtkGrid" id="finishing_table">
                             <property name="visible">1</property>
-                            <property name="border-width">12</property>
                             <property name="row-spacing">6</property>
                             <property name="column-spacing">12</property>
                           </object>
                         <child>
                           <object class="GtkBox" id="advanced_vbox">
                             <property name="visible">1</property>
-                            <property name="border-width">12</property>
                             <property name="orientation">vertical</property>
                             <property name="spacing">18</property>
                           </object>
index 0f2aa1c4351b5f63f0a6e0557b155e16a0419ff3..93bd05df685b3f1e085265fa5d169d3ec8788066 100644 (file)
@@ -9,7 +9,6 @@
         <child>
           <object class="GtkBox" id="tool_box">
             <property name="visible">1</property>
-            <property name="border-width">6</property>
             <property name="spacing">6</property>
             <child>
               <object class="GtkBox" id="box_left">
index dfe80d873460ed9cca714e219055c12f2c403790..584c3fa16cc7adb15270cc3228701688bb5b5bec 100644 (file)
@@ -117,7 +117,6 @@ main (int argc, char *argv[])
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_titlebar (GTK_WINDOW (window), g_object_new (GTK_TYPE_HEADER_BAR, "visible", TRUE, "title", "GdkGears", NULL));
   gtk_window_set_default_size (GTK_WINDOW (window), 640, 640);
-  gtk_container_set_border_width (GTK_CONTAINER (window), 12);
   g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
 
   overlay = gtk_overlay_new ();
@@ -203,7 +202,6 @@ main (int argc, char *argv[])
   button = gtk_menu_button_new ();
   gtk_menu_button_set_direction (GTK_MENU_BUTTON (button), GTK_ARROW_UP);
   popover = gtk_popover_new (NULL);
-  gtk_container_set_border_width (GTK_CONTAINER (popover), 10);
   label = gtk_label_new ("Popovers work too!");
   gtk_widget_show (label);
   gtk_container_add (GTK_CONTAINER (popover), label);
index 610ddd850c410a30a9567861dffa48553ca39f8f..f8e2f0005a6b32014a4643c6bdee2144fe71f6fc 100644 (file)
@@ -255,20 +255,17 @@ gtk_offscreen_box_realize (GtkWidget *widget)
   GdkWindow *window;
   GdkWindowAttr attributes;
   gint attributes_mask;
-  guint border_width;
   GtkRequisition child_requisition;
   int start_y = 0;
 
   gtk_widget_set_realized (widget, TRUE);
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-
   gtk_widget_get_allocation (widget, &allocation);
 
-  attributes.x = allocation.x + border_width;
-  attributes.y = allocation.y + border_width;
-  attributes.width = allocation.width - 2 * border_width;
-  attributes.height = allocation.height - 2 * border_width;
+  attributes.x = allocation.x;
+  attributes.y = allocation.y;
+  attributes.width = allocation.width;
+  attributes.height = allocation.height;
   attributes.window_type = GDK_WINDOW_CHILD;
   attributes.event_mask = gtk_widget_get_events (widget)
                        | GDK_EXPOSURE_MASK
@@ -482,7 +479,6 @@ gtk_offscreen_box_size_request (GtkWidget      *widget,
 {
   GtkOffscreenBox *offscreen_box = GTK_OFFSCREEN_BOX (widget);
   int w, h;
-  guint border_width;
 
   w = 0;
   h = 0;
@@ -509,9 +505,8 @@ gtk_offscreen_box_size_request (GtkWidget      *widget,
       h += CHILD2_SIZE_SCALE * child_requisition.height;
     }
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-  requisition->width = border_width * 2 + w;
-  requisition->height = border_width * 2 + h;
+  requisition->width = w;
+  requisition->height = h;
 }
 
 static void
@@ -544,20 +539,17 @@ gtk_offscreen_box_size_allocate (GtkWidget     *widget,
 {
   GtkOffscreenBox *offscreen_box;
   gint start_y;
-  guint border_width;
 
   offscreen_box = GTK_OFFSCREEN_BOX (widget);
 
   gtk_widget_set_allocation (widget, allocation);
 
-  border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
-
   if (gtk_widget_get_realized (widget))
     gdk_window_move_resize (gtk_widget_get_window (widget),
-                            allocation->x + border_width,
-                            allocation->y + border_width,
-                            allocation->width - border_width * 2,
-                            allocation->height - border_width * 2);
+                            allocation->x,
+                            allocation->y,
+                            allocation->width,
+                            allocation->height);
 
   start_y = 0;
 
@@ -570,7 +562,7 @@ gtk_offscreen_box_size_allocate (GtkWidget     *widget,
                                      &child_requisition, NULL);
       child_allocation.x = child_requisition.width * (CHILD1_SIZE_SCALE - 1.0) / 2;
       child_allocation.y = start_y + child_requisition.height * (CHILD1_SIZE_SCALE - 1.0) / 2;
-      child_allocation.width = MAX (1, (gint) allocation->width - 2 * border_width);
+      child_allocation.width = allocation->width;
       child_allocation.height = child_requisition.height;
 
       start_y += CHILD1_SIZE_SCALE * child_requisition.height;
@@ -595,7 +587,7 @@ gtk_offscreen_box_size_allocate (GtkWidget     *widget,
                                      &child_requisition, NULL);
       child_allocation.x = child_requisition.width * (CHILD2_SIZE_SCALE - 1.0) / 2;
       child_allocation.y = start_y + child_requisition.height * (CHILD2_SIZE_SCALE - 1.0) / 2;
-      child_allocation.width = MAX (1, (gint) allocation->width - 2 * border_width);
+      child_allocation.width = allocation->width;
       child_allocation.height = child_requisition.height;
 
       start_y += CHILD2_SIZE_SCALE * child_requisition.height;
index efdee69c78d3d78ac1d1f8c1c0d1276dac01d692..fd24973969d1793fca140e2dd62bc4fb4903c3a9 100644 (file)
@@ -319,7 +319,6 @@ create_custom_widget (GtkPrintOperation *operation,
 
   gtk_print_operation_set_custom_tab_label (operation, "Other");
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
 
   hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
   gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE);
index 6041fde82df798a890ebc709efd642a2014677e6..30ebd1499ae9d10b519946399be40648074cc55f 100644 (file)
@@ -36,7 +36,6 @@ main (int argc, char *argv[])
                                            "type", GTK_WINDOW_TOPLEVEL,
                                            "title", "hello world",
                                            "resizable", FALSE,
-                                           "border_width", 10,
                                            NULL),
                              "signal::destroy", gtk_main_quit, NULL,
                              NULL);
index 62a2a4c6c6373393bfb2950010ac2363ec487042..e2cea6b6b06e993f9b9a0d97df47b59f5c449685 100644 (file)
@@ -127,25 +127,6 @@ open_test_window (void)
   gtk_widget_show_all (test_window);
 }
 
-static void
-on_toggle_border_widths (GtkToggleButton *button,
-                         void            *data)
-{
-  gboolean has_border;
-  int i;
-
-  has_border = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button));
-
-  for (i = 0; i < TEST_WIDGET_LAST; ++i)
-    {
-      if (GTK_IS_CONTAINER (test_widgets[i]))
-        {
-          gtk_container_set_border_width (GTK_CONTAINER (test_widgets[i]),
-                                          has_border ? 50 : 0);
-        }
-    }
-}
-
 static void
 on_set_small_size_requests (GtkToggleButton *button,
                             void            *data)
@@ -196,13 +177,6 @@ open_control_window (void)
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
   gtk_container_add (GTK_CONTAINER (window), box);
 
-  toggle =
-    gtk_toggle_button_new_with_label ("Containers have borders");
-  g_signal_connect (G_OBJECT (toggle),
-                    "toggled", G_CALLBACK (on_toggle_border_widths),
-                    NULL);
-  gtk_container_add (GTK_CONTAINER (box), toggle);
-
   toggle =
     gtk_toggle_button_new_with_label ("Set small size requests");
   g_signal_connect (G_OBJECT (toggle),
@@ -235,7 +209,6 @@ create_widget_visible_border (const char *text)
   gtk_style_context_add_class (gtk_widget_get_style_context (outer_box), "black-bg");
 
   inner_box = gtk_event_box_new ();
-  gtk_container_set_border_width (GTK_CONTAINER (inner_box), 5);
   gtk_style_context_add_class (gtk_widget_get_style_context (inner_box), "blue-bg");
 
   gtk_container_add (GTK_CONTAINER (outer_box), inner_box);
index aa8ffd05ef407c7147a5489abe9b359cc3aa7505..2dd60f910d3cc92b1c88a9f5c942f0861d3855d7 100644 (file)
@@ -318,10 +318,7 @@ do_image (const char *filename)
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_title (GTK_WINDOW (window), "Image Loading");
 
-  gtk_container_set_border_width (GTK_CONTAINER (window), 8);
-
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
   gtk_container_add (GTK_CONTAINER (window), vbox);
 
   label = gtk_label_new (NULL);
@@ -375,10 +372,7 @@ do_nonprogressive (const gchar *filename)
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_title (GTK_WINDOW (window), "Animation");
 
-  gtk_container_set_border_width (GTK_CONTAINER (window), 8);
-
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
   gtk_container_add (GTK_CONTAINER (window), vbox);
 
   label = gtk_label_new (NULL);
index 6641730731b7e8b659e2b3de173f54caba073f7c..25666dfe8dae9889049eb9a763e769e728b6c82b 100644 (file)
@@ -160,7 +160,6 @@ main (int argc, char **argv)
   gtk_init (&argc, &argv);
 
   toplevel = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-  gtk_container_set_border_width (GTK_CONTAINER (toplevel), 12);
   grid = gtk_grid_new ();
 
   w1 = gtk_label_new ("File:");
index 95def5a38d0442d620d291ffd88e3ff716c8adf5..bf37cd57c4b19b4809ac54a773c6093ca2836589 100644 (file)
@@ -71,7 +71,6 @@ main (int argc,
   gtk_init (&argc, &argv);
 
   toplevel = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-  gtk_container_set_border_width (GTK_CONTAINER (toplevel), 12);
 
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
   gtk_container_add (GTK_CONTAINER (toplevel), box);
index 3d6fab7b181181d5625d813258e4ae1f9fbe5af1..de0d4f106f7c7d3ec9296d5813296d339e7d5ca6 100644 (file)
@@ -446,7 +446,6 @@ create_calendar(void)
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_title (GTK_WINDOW (window), "GtkCalendar Example");
-  gtk_container_set_border_width (GTK_CONTAINER (window), 12);
   g_signal_connect (window, "destroy",
                    G_CALLBACK (gtk_main_quit),
                    NULL);
index 842d81312ac87bdc6d6ddf1e80028fc5ea154917..c9648a52559ea6163c1e447e7ed7af3d506f12ac 100644 (file)
@@ -259,7 +259,6 @@ main (int argc, char **argv)
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   g_signal_connect (window, "destroy",
                    G_CALLBACK (gtk_main_quit), NULL);
-  gtk_container_set_border_width (GTK_CONTAINER (window), 12);
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
   gtk_container_add (GTK_CONTAINER (window), vbox);
index 7d2db0b201aaa400f10deebbe4aeb02847d36036..c0880d161fd4a68811832767d5a0e3fd4ff019d1 100644 (file)
@@ -1079,7 +1079,6 @@ main (int argc, char **argv)
          }
 
         window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-        gtk_container_set_border_width (GTK_CONTAINER (window), 5);
         g_signal_connect (window, "destroy", gtk_main_quit, NULL);
 
         mainbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
@@ -1090,7 +1089,6 @@ main (int argc, char **argv)
         gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE);
 
         boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-        gtk_container_set_border_width (GTK_CONTAINER (boom), 5);
         gtk_container_add (GTK_CONTAINER (tmp), boom);
 
         cellview = gtk_cell_view_new ();
@@ -1112,7 +1110,6 @@ main (int argc, char **argv)
         gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE);
 
         boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-        gtk_container_set_border_width (GTK_CONTAINER (boom), 5);
         gtk_container_add (GTK_CONTAINER (tmp), boom);
 
         model = create_list_blaat ();
@@ -1153,7 +1150,6 @@ main (int argc, char **argv)
         gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE);
 
         boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-        gtk_container_set_border_width (GTK_CONTAINER (boom), 5);
         gtk_container_add (GTK_CONTAINER (tmp), boom);
 
         model = create_empty_list_blaat ();
@@ -1197,7 +1193,6 @@ main (int argc, char **argv)
         gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE);
 
         boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-        gtk_container_set_border_width (GTK_CONTAINER (boom), 5);
         gtk_container_add (GTK_CONTAINER (tmp), boom);
 
         model = create_list_blaat ();
@@ -1257,7 +1252,6 @@ main (int argc, char **argv)
         gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE);
 
         boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-        gtk_container_set_border_width (GTK_CONTAINER (boom), 5);
         gtk_container_add (GTK_CONTAINER (tmp), boom);
 
         model = create_tree_blaat ();
@@ -1301,7 +1295,6 @@ main (int argc, char **argv)
         gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE);
 
         boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-        gtk_container_set_border_width (GTK_CONTAINER (boom), 5);
         gtk_container_add (GTK_CONTAINER (tmp), boom);
 
         comboboxgrid = create_combo_box_grid_demo ();
@@ -1313,7 +1306,6 @@ main (int argc, char **argv)
         gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE);
 
         boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-        gtk_container_set_border_width (GTK_CONTAINER (boom), 5);
         gtk_container_add (GTK_CONTAINER (tmp), boom);
 
         comboboxtext = gtk_combo_box_text_new_with_entry ();
@@ -1326,7 +1318,6 @@ main (int argc, char **argv)
         gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE);
 
         boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-        gtk_container_set_border_width (GTK_CONTAINER (boom), 5);
         gtk_container_add (GTK_CONTAINER (tmp), boom);
 
         model = create_phylogenetic_tree ();
@@ -1349,7 +1340,6 @@ main (int argc, char **argv)
         gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE);
 
         boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-        gtk_container_set_border_width (GTK_CONTAINER (boom), 5);
         gtk_container_add (GTK_CONTAINER (tmp), boom);
 
         model = create_capital_tree ();
@@ -1381,7 +1371,6 @@ main (int argc, char **argv)
         gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE);
 
         boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-        gtk_container_set_border_width (GTK_CONTAINER (boom), 5);
         gtk_container_add (GTK_CONTAINER (tmp), boom);
 
         model = create_food_list ();
@@ -1416,7 +1405,6 @@ main (int argc, char **argv)
         gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE);
 
         boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-        gtk_container_set_border_width (GTK_CONTAINER (boom), 5);
         gtk_container_add (GTK_CONTAINER (tmp), boom);
 
        model = create_list_long ();
index 9b5c1ec5410a49a1864a556346f393eb43ff877b..c8c7762840905698b0894f62bf7ae9b78156895b 100644 (file)
@@ -247,7 +247,6 @@ main (int argc, char **argv)
   content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
 
   hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
-  gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
   gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE, TRUE);
 
   combo_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
index 9d1397e5603b7c71f684a291107ce61545ece9c4..18b650852ec7d1d445188ede54791e097a4217fb 100644 (file)
@@ -128,7 +128,6 @@ main (int argc, char *argv[])
   gtk_init (&argc, &argv);
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-  gtk_container_set_border_width (GTK_CONTAINER (window), 12);
   gtk_window_set_default_size (GTK_WINDOW (window), 400, 300);
   g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
 
index 19f0aa1d4105b820f54ffbc98f2e8665ce90dd04..3d8ee8091f42f13c6ebd10645f7fac3ea7d1372d 100644 (file)
@@ -13,7 +13,6 @@ int main (int argc, char **argv)
        window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
 
        grid = gtk_grid_new ();
-       gtk_container_set_border_width (GTK_CONTAINER (grid), 12);
        gtk_grid_set_row_spacing (GTK_GRID (grid), 12);
        gtk_grid_set_column_spacing (GTK_GRID (grid), 12);
        gtk_container_add (GTK_CONTAINER (window), grid);
index a45c2c9886996f012c79d3dad54e0e9647519723..4bb0124e7c9b21e3b24d029b3eb6f11756f032a3 100644 (file)
@@ -299,14 +299,11 @@ main (int argc, char *argv[])
   gtk_init (&argc, &argv);
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-  gtk_container_set_border_width (GTK_CONTAINER (window), 5);
   g_signal_connect (window, "delete_event", gtk_main_quit, NULL);
   
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
   gtk_container_add (GTK_CONTAINER (window), vbox);
     
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
-  
   label = gtk_label_new (NULL);
 
   gtk_label_set_markup (GTK_LABEL (label), "Completion demo, try writing <b>total</b> or <b>gnome</b> for example.");
index d9921edc9ade64037205db02f209b6014452a500..1025c0a8066a8bda52abbb64f6a13ce3759c65e3 100644 (file)
@@ -112,7 +112,6 @@ main (int argc, char **argv)
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_title (GTK_WINDOW (window), "Gtk Entry Icons Test");
-  gtk_container_set_border_width (GTK_CONTAINER (window), 12);
 
   g_signal_connect (G_OBJECT (window), "destroy",
                    G_CALLBACK (gtk_main_quit), NULL);
index ec537aab9af56f7634d4fa774550930faa0bd72d..96deb114f381818676039537608be7a63a0feb51 100644 (file)
@@ -124,7 +124,6 @@ tests_button_clicked_cb (GtkButton *real_button,
       tests = gtk_window_new (GTK_WINDOW_TOPLEVEL);
       gtk_window_set_title (GTK_WINDOW (tests),
                            "Tests - TestFileChooserButton");
-      gtk_container_set_border_width (GTK_CONTAINER (tests), 12);
       gtk_window_set_transient_for (GTK_WINDOW (tests),
                                    GTK_WINDOW (gtk_widget_get_toplevel (user_data)));
 
index ce79ba7104d0a86d72c3ffb13057cfcf8b64d763..779ee4df4e3868efe0a61dd59888745993fcdd85 100644 (file)
@@ -403,8 +403,6 @@ create_window (void)
   hbox   = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
   vbox   = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
 
-  gtk_container_set_border_width (GTK_CONTAINER (window), 8);
-
   gtk_widget_show (vbox);
   gtk_widget_show (hbox);
   gtk_container_add (GTK_CONTAINER (window), hbox);
index 644ece9754fb506628fa17363f8ae436ef40ae40..7db27bcf7abdf6250edcff5eb602b7339a54b3c8 100644 (file)
@@ -38,7 +38,6 @@ main (int argc, char *argv[])
   grid = gtk_grid_new ();
   gtk_grid_set_row_spacing (GTK_GRID (grid), 10);
   gtk_grid_set_column_spacing (GTK_GRID (grid), 10);
-  gtk_container_set_border_width (GTK_CONTAINER (grid), 10);
   gtk_container_add (GTK_CONTAINER (window), grid);
   label = gtk_label_new ("Default font options");
   gtk_grid_attach (GTK_GRID (grid), label, 0, 0, 2, 1);
index 85b6fe5d0cfc801c228b9ce61e760ce1fce7ceca..7410c6eef7e7b786d08ff1a1261d4db9099a2e87 100644 (file)
@@ -139,7 +139,6 @@ int main (int argc, char **argv)
   gtk_init (&argc, &argv);
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-  gtk_container_set_border_width (GTK_CONTAINER (window), 5);
   gtk_window_set_default_size (GTK_WINDOW (window), 300, 300);
 
   g_signal_connect (G_OBJECT (window), "delete-event", gtk_main_quit, NULL);
index ef2bec8d395a6b09bc671c44f958439929310944..187637d952d38ab4d5bb6a8b7b8ac1ffbb75fe71 100644 (file)
@@ -406,7 +406,6 @@ main (int argc, char *argv[])
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_title (GTK_WINDOW (window), "GtkGLArea - Triangle");
   gtk_window_set_default_size (GTK_WINDOW (window), 400, 600);
-  gtk_container_set_border_width (GTK_CONTAINER (window), 12);
   g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
 
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE);
index ef81c8c52bd66c3280a21b4d5996878382722bc9..bb3b186bdde002981f622846eb1565a51d66254f 100644 (file)
@@ -13,7 +13,6 @@ main (int argc, char *argv[])
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_title (GTK_WINDOW (window), "Test GL/gtk inter-blending");
   gtk_window_set_default_size (GTK_WINDOW (window), 250, 250);
-  gtk_container_set_border_width (GTK_CONTAINER (window), 12);
   g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
 
   fixed = gtk_fixed_new ();
index 23e0ac20febe987f4e80e0862b631fd10a6e1f75..3a2dcfb2d24b0b25f5b5011c055b8cab74dc8207 100644 (file)
@@ -132,13 +132,8 @@ on_alpha_window_draw (GtkWidget *widget,
   /* Get the child allocation to avoid painting over the borders */
   GtkWidget *child = gtk_bin_get_child (GTK_BIN (widget));
   GtkAllocation child_allocation;
-  int border_width = gtk_container_get_border_width (GTK_CONTAINER (child));
 
   gtk_widget_get_allocation (child, &child_allocation);
-  child_allocation.x -= border_width;
-  child_allocation.y -= border_width;
-  child_allocation.width += 2 * border_width;
-  child_allocation.height += 2 * border_width;
 
   cairo_translate (cr, child_allocation.x, child_allocation.y);
 
@@ -261,7 +256,6 @@ create_alpha_window (GtkWidget *widget)
       content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
       gtk_box_pack_start (GTK_BOX (content_area), vbox,
                          TRUE, TRUE);
 
@@ -328,7 +322,6 @@ create_buttons (GtkWidget *widget)
                        &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "GtkButton");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
       gtk_container_add (GTK_CONTAINER (window), box1);
@@ -336,7 +329,6 @@ create_buttons (GtkWidget *widget)
       grid = gtk_grid_new ();
       gtk_grid_set_row_spacing (GTK_GRID (grid), 5);
       gtk_grid_set_column_spacing (GTK_GRID (grid), 5);
-      gtk_container_set_border_width (GTK_CONTAINER (grid), 10);
       gtk_box_pack_start (GTK_BOX (box1), grid, TRUE, TRUE);
 
       button[0] = gtk_button_new_with_label ("button1");
@@ -365,7 +357,6 @@ create_buttons (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
 
       button[9] = gtk_button_new_with_label ("close");
@@ -407,13 +398,11 @@ create_toggle_buttons (GtkWidget *widget)
                        &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "GtkToggleButton");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
       gtk_container_add (GTK_CONTAINER (window), box1);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE);
 
       button = gtk_toggle_button_new_with_label ("button1");
@@ -433,7 +422,6 @@ create_toggle_buttons (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
 
       button = gtk_button_new_with_label ("close");
@@ -539,7 +527,6 @@ create_check_buttons (GtkWidget *widget)
       box1 = gtk_dialog_get_content_area (GTK_DIALOG (window));
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE);
 
       button = gtk_check_button_new_with_mnemonic ("_button1");
@@ -559,7 +546,6 @@ create_check_buttons (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE);
 
       table = create_widget_grid (GTK_TYPE_CHECK_BUTTON);
-      gtk_container_set_border_width (GTK_CONTAINER (table), 10);
       gtk_box_pack_start (GTK_BOX (box1), table, TRUE, TRUE);
     }
 
@@ -604,7 +590,6 @@ create_radio_buttons (GtkWidget *widget)
       box1 = gtk_dialog_get_content_area (GTK_DIALOG (window));
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE);
 
       button = gtk_radio_button_new_with_label (NULL, "button1");
@@ -631,7 +616,6 @@ create_radio_buttons (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE);
 
       button = gtk_radio_button_new_with_label (NULL, "button4");
@@ -655,7 +639,6 @@ create_radio_buttons (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE);
 
       table = create_widget_grid (GTK_TYPE_RADIO_BUTTON);
-      gtk_container_set_border_width (GTK_CONTAINER (table), 10);
       gtk_box_pack_start (GTK_BOX (box1), table, TRUE, TRUE);
     }
 
@@ -688,7 +671,6 @@ create_bbox (gint  horizontal,
   else
     bbox = gtk_button_box_new (GTK_ORIENTATION_VERTICAL);
 
-  gtk_container_set_border_width (GTK_CONTAINER (bbox), 5);
   gtk_container_add (GTK_CONTAINER (frame), bbox);
 
   gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), layout);
@@ -726,8 +708,6 @@ create_button_box (GtkWidget *widget)
                      G_CALLBACK (gtk_widget_destroyed),
                      &window);
 
-    gtk_container_set_border_width (GTK_CONTAINER (window), 10);
-
     main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
     gtk_container_add (GTK_CONTAINER (window), main_vbox);
 
@@ -737,7 +717,6 @@ create_button_box (GtkWidget *widget)
     gtk_box_pack_start (GTK_BOX (main_vbox), frame_horz, TRUE, TRUE);
 
     vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-    gtk_container_set_border_width (GTK_CONTAINER (vbox), 10);
     gtk_container_add (GTK_CONTAINER (frame_horz), vbox);
 
     gtk_box_pack_start (GTK_BOX (vbox),
@@ -766,7 +745,6 @@ create_button_box (GtkWidget *widget)
     gtk_box_pack_start (GTK_BOX (main_vbox), frame_vert, TRUE, TRUE);
 
     hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-    gtk_container_set_border_width (GTK_CONTAINER (hbox), 10);
     gtk_container_add (GTK_CONTAINER (frame_vert), hbox);
 
     gtk_box_pack_start (GTK_BOX (hbox),
@@ -935,7 +913,6 @@ create_toolbar (GtkWidget *widget)
                        G_CALLBACK (gtk_widget_destroyed),
                        &window);
 
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
       gtk_widget_realize (window);
 
       toolbar = gtk_toolbar_new ();
@@ -1081,13 +1058,11 @@ create_statusbar (GtkWidget *widget)
                        &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "statusbar");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
       gtk_container_add (GTK_CONTAINER (window), box1);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE);
 
       statusbar = gtk_statusbar_new ();
@@ -1142,7 +1117,6 @@ create_statusbar (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
 
       button = gtk_button_new_with_label ("close");
@@ -1194,7 +1168,6 @@ create_alpha_widgets (GtkWidget *widget)
                         G_CALLBACK (gtk_widget_destroyed), &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "Alpha");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       main_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
       gtk_container_add (GTK_CONTAINER (window), main_hbox);
@@ -1435,7 +1408,6 @@ void create_labels (GtkWidget *widget)
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
 
       gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE);
-      gtk_container_set_border_width (GTK_CONTAINER (window), 5);
 
       frame = gtk_frame_new ("Normal Label");
       label = gtk_label_new ("This is a Normal label");
@@ -1600,7 +1572,6 @@ create_rotated_label (GtkWidget *widget)
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
       gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 10);
 
       label = gtk_label_new (NULL);
       gtk_label_set_markup (GTK_LABEL (label), "Hello World\n<i>Rotate</i> <span underline='single' foreground='blue'>me</span>");
@@ -1813,13 +1784,11 @@ create_reparent (GtkWidget *widget)
                        &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "reparent");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
       gtk_container_add (GTK_CONTAINER (window), box1);
 
       box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE);
 
       label = gtk_label_new ("Hello World");
@@ -1828,7 +1797,6 @@ create_reparent (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box2), frame, TRUE, TRUE);
 
       box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
-      gtk_container_set_border_width (GTK_CONTAINER (box3), 5);
       gtk_container_add (GTK_CONTAINER (frame), box3);
 
       button = gtk_button_new_with_label ("switch");
@@ -1851,7 +1819,6 @@ create_reparent (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box2), frame, TRUE, TRUE);
 
       box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
-      gtk_container_set_border_width (GTK_CONTAINER (box3), 5);
       gtk_container_add (GTK_CONTAINER (frame), box3);
 
       button = gtk_button_new_with_label ("switch");
@@ -1869,7 +1836,6 @@ create_reparent (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
 
       button = gtk_button_new_with_label ("close");
@@ -2140,7 +2106,6 @@ create_saved_position (GtkWidget *widget)
                        &window);
 
       main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
-      gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 0);
       gtk_container_add (GTK_CONTAINER (window), main_vbox);
 
       vbox =
@@ -2148,7 +2113,6 @@ create_saved_position (GtkWidget *widget)
                       "orientation", GTK_ORIENTATION_VERTICAL,
                        "GtkBox::homogeneous", FALSE,
                        "GtkBox::spacing", 5,
-                       "GtkContainer::border_width", 10,
                        "GtkWidget::parent", main_vbox,
                        "GtkWidget::visible", TRUE,
                        "child", g_object_connect (g_object_new (GTK_TYPE_TOGGLE_BUTTON,
@@ -2161,7 +2125,6 @@ create_saved_position (GtkWidget *widget)
                        NULL);
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-      gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
       gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE);
 
       label = gtk_label_new ("X Origin : ");
@@ -2174,7 +2137,6 @@ create_saved_position (GtkWidget *widget)
       g_object_set_data (G_OBJECT (window), "x", x_label);
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-      gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
       gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE);
 
       label = gtk_label_new ("Y Origin : ");
@@ -2193,7 +2155,6 @@ create_saved_position (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (main_vbox), any, FALSE, TRUE);
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-      gtk_container_set_border_width (GTK_CONTAINER (hbox), 10);
       gtk_box_pack_start (GTK_BOX (main_vbox), hbox, FALSE, TRUE);
 
       button = gtk_button_new_with_label ("Close");
@@ -2239,14 +2200,12 @@ create_pixbuf (GtkWidget *widget)
                         &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "GtkPixmap");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
       gtk_widget_realize(window);
 
       box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
       gtk_container_add (GTK_CONTAINER (window), box1);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE);
 
       button = gtk_button_new ();
@@ -2258,7 +2217,6 @@ create_pixbuf (GtkWidget *widget)
 
       label = gtk_label_new ("Pixbuf\ntest");
       box3 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-      gtk_container_set_border_width (GTK_CONTAINER (box3), 2);
       gtk_container_add (GTK_CONTAINER (box3), pixbufwid);
       gtk_container_add (GTK_CONTAINER (box3), label);
       gtk_container_add (GTK_CONTAINER (button), box3);
@@ -2270,7 +2228,6 @@ create_pixbuf (GtkWidget *widget)
 
       label = gtk_label_new ("Pixbuf\ntest");
       box3 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-      gtk_container_set_border_width (GTK_CONTAINER (box3), 2);
       gtk_container_add (GTK_CONTAINER (box3), pixbufwid);
       gtk_container_add (GTK_CONTAINER (box3), label);
       gtk_container_add (GTK_CONTAINER (button), box3);
@@ -2281,7 +2238,6 @@ create_pixbuf (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
 
       button = gtk_button_new_with_label ("close");
@@ -2316,7 +2272,6 @@ create_tooltips (GtkWidget *widget)
       window =
        g_object_new (gtk_window_get_type (),
                        "GtkWindow::type", GTK_WINDOW_TOPLEVEL,
-                       "GtkContainer::border_width", 0,
                        "GtkWindow::title", "Tooltips",
                        "GtkWindow::resizable", FALSE,
                        NULL);
@@ -2328,7 +2283,6 @@ create_tooltips (GtkWidget *widget)
       gtk_container_add (GTK_CONTAINER (window), box1);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE);
 
       button = gtk_toggle_button_new_with_label ("button1");
@@ -2354,7 +2308,6 @@ create_tooltips (GtkWidget *widget)
                       "orientation", GTK_ORIENTATION_VERTICAL,
                        "homogeneous", FALSE,
                        "spacing", 5,
-                       "border_width", 5,
                        "visible", TRUE,
                        NULL);
 
@@ -2370,7 +2323,6 @@ create_tooltips (GtkWidget *widget)
       frame = g_object_new (gtk_frame_get_type (),
                              "label", "ToolTips Inspector",
                              "label_xalign", (double) 0.5,
-                             "border_width", 0,
                              "visible", TRUE,
                              "parent", box2,
                              "child", box3,
@@ -2381,7 +2333,6 @@ create_tooltips (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
 
       button = gtk_button_new_with_label ("close");
@@ -2923,7 +2874,6 @@ create_menus (GtkWidget *widget)
       gtk_window_add_accel_group (GTK_WINDOW (window), accel_group);
 
       gtk_window_set_title (GTK_WINDOW (window), "menus");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
       
       
       box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
@@ -2980,7 +2930,6 @@ create_menus (GtkWidget *widget)
       gtk_widget_show (menuitem);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE);
       gtk_widget_show (box2);
 
@@ -3031,7 +2980,6 @@ create_menus (GtkWidget *widget)
       gtk_widget_show (separator);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
       gtk_widget_show (box2);
 
@@ -3230,10 +3178,6 @@ create_modal_window (GtkWidget *widget)
   btnFile = gtk_button_new_with_label ("File Selection");
   btnClose = gtk_button_new_with_label ("Close");
 
-  /* Init widgets */
-  gtk_container_set_border_width (GTK_CONTAINER (box1), 3);
-  gtk_container_set_border_width (GTK_CONTAINER (box2), 3);
-
   /* Pack widgets */
   gtk_container_add (GTK_CONTAINER (window), box1);
   gtk_box_pack_start (GTK_BOX (box1), frame1, TRUE, TRUE);
@@ -3416,10 +3360,8 @@ create_scrolled_windows (GtkWidget *widget)
       content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
 
       gtk_window_set_title (GTK_WINDOW (window), "dialog");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       scrolled_window = gtk_scrolled_window_new (NULL, NULL);
-      gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 10);
       gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
                                      GTK_POLICY_AUTOMATIC,
                                      GTK_POLICY_AUTOMATIC);
@@ -3572,7 +3514,6 @@ create_entry (GtkWidget *widget)
                        &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "entry");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
 
       box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
@@ -3580,7 +3521,6 @@ create_entry (GtkWidget *widget)
 
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE);
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
@@ -3636,7 +3576,6 @@ create_entry (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
 
       button = gtk_button_new_with_label ("close");
@@ -3673,7 +3612,6 @@ create_expander (GtkWidget *widget)
                        &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "expander");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
       gtk_container_add (GTK_CONTAINER (window), box1);
@@ -3770,7 +3708,6 @@ create_event_box (GtkWidget *widget)
                        &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "event box");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
       gtk_container_add (GTK_CONTAINER (window), box1);
@@ -3816,7 +3753,6 @@ create_event_box (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE);
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
 
       button = gtk_button_new_with_label ("close");
@@ -3896,7 +3832,6 @@ create_size_group_window (GdkScreen    *screen,
 
   gtk_grid_set_row_spacing (GTK_GRID (grid), 5);
   gtk_grid_set_column_spacing (GTK_GRID (grid), 5);
-  gtk_container_set_border_width (GTK_CONTAINER (grid), 5);
   gtk_widget_set_size_request (grid, 250, 250);
 
   hgroup1 = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
@@ -4212,14 +4147,12 @@ create_spins (GtkWidget *widget)
       gtk_window_set_title (GTK_WINDOW (window), "GtkSpinButton");
 
       main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
-      gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 10);
       gtk_container_add (GTK_CONTAINER (window), main_vbox);
 
       frame = gtk_frame_new ("Not accelerated");
       gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE, TRUE);
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
       gtk_container_add (GTK_CONTAINER (frame), vbox);
 
       /* Time, month, hex spinners */
@@ -4298,7 +4231,6 @@ create_spins (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE, TRUE);
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
       gtk_container_add (GTK_CONTAINER (frame), vbox);
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
@@ -4376,7 +4308,6 @@ create_spins (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE, TRUE);
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-      gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
       gtk_container_add (GTK_CONTAINER (frame), hbox);
 
       val_label = gtk_label_new ("0.0");
@@ -4674,7 +4605,6 @@ create_cursors (GtkWidget *widget)
       gtk_window_set_title (GTK_WINDOW (window), "Cursors");
 
       main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
-      gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 0);
       gtk_container_add (GTK_CONTAINER (window), main_vbox);
 
       vbox =
@@ -4682,7 +4612,6 @@ create_cursors (GtkWidget *widget)
                       "orientation", GTK_ORIENTATION_VERTICAL,
                        "GtkBox::homogeneous", FALSE,
                        "GtkBox::spacing", 5,
-                       "GtkContainer::border_width", 10,
                        "GtkWidget::parent", main_vbox,
                        "GtkWidget::visible", TRUE,
                        NULL);
@@ -4701,7 +4630,6 @@ create_cursors (GtkWidget *widget)
           guint w, h;
 
           hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
-          gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
           gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE);
 
           label = gtk_label_new ("Cursor Theme:");
@@ -4725,7 +4653,6 @@ create_cursors (GtkWidget *widget)
         }
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
-      gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
       gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE);
 
       label = gtk_label_new ("Cursor Name:");
@@ -4746,7 +4673,6 @@ create_cursors (GtkWidget *widget)
        g_object_new (gtk_frame_get_type (),
                        "GtkFrame::label_xalign", 0.5,
                        "GtkFrame::label", "Cursor Area",
-                       "GtkContainer::border_width", 10,
                        "GtkWidget::parent", vbox,
                        "GtkWidget::visible", TRUE,
                        NULL);
@@ -4771,7 +4697,6 @@ create_cursors (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (main_vbox), any, FALSE, TRUE);
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-      gtk_container_set_border_width (GTK_CONTAINER (hbox), 10);
       gtk_box_pack_start (GTK_BOX (main_vbox), hbox, FALSE, TRUE);
 
       button = gtk_button_new_with_label ("Close");
@@ -4812,10 +4737,8 @@ create_color_selection (GtkWidget *widget)
                         &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "GtkColorButton");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
-      gtk_container_set_border_width (GTK_CONTAINER (hbox), 8);
       gtk_container_add (GTK_CONTAINER (window), hbox);
       
       label = gtk_label_new ("Pick a color");
@@ -4902,8 +4825,6 @@ create_forward_back (const char       *title,
   GtkWidget *back_button = gtk_button_new_with_label ("Back");
   GtkWidget *forward_button = gtk_button_new_with_label ("Forward");
 
-  gtk_container_set_border_width (GTK_CONTAINER (bbox), 5);
-  
   gtk_container_add (GTK_CONTAINER (frame), bbox);
   gtk_container_add (GTK_CONTAINER (bbox), back_button);
   gtk_container_add (GTK_CONTAINER (bbox), forward_button);
@@ -4936,7 +4857,6 @@ create_flipping (GtkWidget *widget)
       gtk_window_set_title (GTK_WINDOW (window), "Bidirectional Flipping");
 
       check_button = gtk_check_button_new_with_label ("Right-to-left global direction");
-      gtk_container_set_border_width (GTK_CONTAINER (check_button), 10);
       gtk_box_pack_start (GTK_BOX (content_area), check_button, TRUE, TRUE);
 
       if (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL)
@@ -4946,7 +4866,6 @@ create_flipping (GtkWidget *widget)
                        G_CALLBACK (flipping_toggled_cb), NULL);
 
       check_button = gtk_check_button_new_with_label ("Toggle orientation of all boxes");
-      gtk_container_set_border_width (GTK_CONTAINER (check_button), 10);
       gtk_box_pack_start (GTK_BOX (content_area), check_button, TRUE, TRUE);
 
       g_signal_connect (check_button, "toggled",
@@ -5102,10 +5021,8 @@ create_font_selection (GtkWidget *widget)
                        &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "GtkFontButton");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
-      gtk_container_set_border_width (GTK_CONTAINER (hbox), 8);
       gtk_container_add (GTK_CONTAINER (window), hbox);
       
       label = gtk_label_new ("Pick a font");
@@ -5184,7 +5101,6 @@ create_dialog (GtkWidget *widget)
 
 
       gtk_window_set_title (GTK_WINDOW (dialog_window), "GtkDialog");
-      gtk_container_set_border_width (GTK_CONTAINER (dialog_window), 0);
 
       gtk_dialog_add_button (GTK_DIALOG (dialog_window),
                              "OK",
@@ -5286,7 +5202,6 @@ create_display_screen (GtkWidget *widget)
                         "screen", screen,
                         "type", GTK_WINDOW_TOPLEVEL,
                         "title", "Screen or Display selection",
-                        "border_width",
                          10, NULL);
   g_signal_connect (window, "destroy", 
                    G_CALLBACK (gtk_widget_destroy), NULL);
@@ -5407,14 +5322,12 @@ create_event_watcher (GtkWidget *widget)
       content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog_window));
 
       gtk_window_set_title (GTK_WINDOW (dialog_window), "Event Watcher");
-      gtk_container_set_border_width (GTK_CONTAINER (dialog_window), 0);
       gtk_widget_set_size_request (dialog_window, 200, 110);
 
       button = gtk_toggle_button_new_with_label ("Activate Watch");
       g_signal_connect (button, "clicked",
                        G_CALLBACK (event_watcher_toggle),
                        NULL);
-      gtk_container_set_border_width (GTK_CONTAINER (button), 10);
       gtk_box_pack_start (GTK_BOX (content_area), button, TRUE, TRUE);
       gtk_widget_show (button);
 
@@ -5465,7 +5378,6 @@ create_range_controls (GtkWidget *widget)
                        &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "range controls");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
 
       box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
@@ -5474,7 +5386,6 @@ create_range_controls (GtkWidget *widget)
 
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE);
       gtk_widget_show (box2);
 
@@ -5537,7 +5448,6 @@ create_range_controls (GtkWidget *widget)
 
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
       gtk_widget_show (box2);
 
@@ -5697,11 +5607,9 @@ create_pages (GtkNotebook *notebook, gint start, gint end)
       sprintf (accel_buffer, "Page _%d", i);
 
       child = gtk_frame_new (buffer);
-      gtk_container_set_border_width (GTK_CONTAINER (child), 10);
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
       gtk_box_set_homogeneous (GTK_BOX (vbox), TRUE);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 10);
       gtk_container_add (GTK_CONTAINER (child), vbox);
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
@@ -5869,7 +5777,6 @@ create_notebook (GtkWidget *widget)
                        &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "notebook");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
       gtk_container_add (GTK_CONTAINER (window), box1);
@@ -5879,7 +5786,6 @@ create_notebook (GtkWidget *widget)
                        G_CALLBACK (page_switch), NULL);
       gtk_notebook_set_tab_pos (GTK_NOTEBOOK (sample_notebook), GTK_POS_TOP);
       gtk_box_pack_start (GTK_BOX (box1), sample_notebook, TRUE, TRUE);
-      gtk_container_set_border_width (GTK_CONTAINER (sample_notebook), 10);
 
       gtk_widget_realize (sample_notebook);
 
@@ -5895,7 +5801,6 @@ create_notebook (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE);
 
       box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
 
       button = gtk_check_button_new_with_label ("popup menu");
@@ -5905,7 +5810,6 @@ create_notebook (GtkWidget *widget)
                        sample_notebook);
 
       box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
 
       label = gtk_label_new ("Notebook Style :");
@@ -5923,7 +5827,6 @@ create_notebook (GtkWidget *widget)
 
       box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
       gtk_box_set_homogeneous (GTK_BOX (box2), TRUE);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
 
       button = gtk_button_new_with_label ("prev");
@@ -5947,7 +5850,6 @@ create_notebook (GtkWidget *widget)
       gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE);
 
       button = gtk_button_new_with_label ("close");
-      gtk_container_set_border_width (GTK_CONTAINER (button), 5);
       g_signal_connect_swapped (button, "clicked",
                                G_CALLBACK (gtk_widget_destroy),
                                window);
@@ -6004,7 +5906,6 @@ create_pane_options (GtkPaned    *paned,
   child2 = gtk_paned_get_child2 (paned);
 
   frame = gtk_frame_new (frame_label);
-  gtk_container_set_border_width (GTK_CONTAINER (frame), 4);
   
   grid = gtk_grid_new ();
   gtk_container_add (GTK_CONTAINER (frame), grid);
@@ -6070,14 +5971,12 @@ create_panes (GtkWidget *widget)
                        &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "Panes");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
       gtk_container_add (GTK_CONTAINER (window), vbox);
 
       vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
       gtk_box_pack_start (GTK_BOX (vbox), vpaned, TRUE, TRUE);
-      gtk_container_set_border_width (GTK_CONTAINER(vpaned), 5);
 
       hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
       gtk_paned_add1 (GTK_PANED (vpaned), hpaned);
@@ -6202,11 +6101,9 @@ paned_keyboard_window1 (GtkWidget *widget)
 
   frame4 = gtk_frame_new ("Buttons");
   gtk_container_add (GTK_CONTAINER (frame3), frame4);
-  gtk_container_set_border_width (GTK_CONTAINER (frame4), 15);
 
   grid1 = gtk_grid_new ();
   gtk_container_add (GTK_CONTAINER (frame4), grid1);
-  gtk_container_set_border_width (GTK_CONTAINER (grid1), 11);
 
   button1 = gtk_button_new_with_label ("button1");
   gtk_grid_attach (GTK_GRID (grid1), button1, 0, 0, 1, 1);
@@ -6760,7 +6657,6 @@ create_wmhints (GtkWidget *widget)
                        &window);
 
       gtk_window_set_title (GTK_WINDOW (window), "WM Hints");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       gtk_widget_realize (window);
 
@@ -6795,7 +6691,6 @@ create_wmhints (GtkWidget *widget)
 
 
       box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
       gtk_widget_show (box2);
 
@@ -7704,10 +7599,8 @@ create_progress_bar (GtkWidget *widget)
       content_area = gtk_dialog_get_content_area (GTK_DIALOG (pdata->window));
 
       gtk_window_set_title (GTK_WINDOW (pdata->window), "GtkProgressBar");
-      gtk_container_set_border_width (GTK_CONTAINER (pdata->window), 0);
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 10);
       gtk_box_pack_start (GTK_BOX (content_area), vbox, FALSE, TRUE);
 
       frame = gtk_frame_new ("Progress");
@@ -8095,7 +7988,6 @@ create_snapshot (GtkWidget *widget)
                                        data);
 
       gtk_window_set_title (GTK_WINDOW (window), "test snapshot");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 10);
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 1);
       gtk_container_add (GTK_CONTAINER (window), vbox);
@@ -8219,12 +8111,10 @@ create_selection_test (GtkWidget *widget)
       content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
 
       gtk_window_set_title (GTK_WINDOW (window), "Selection Test");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       /* Create the list */
 
       vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox), 10);
       gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE);
 
       label = gtk_label_new ("Gets available targets for current selection");
@@ -8372,7 +8262,6 @@ create_scroll_test (GtkWidget *widget)
       content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
 
       gtk_window_set_title (GTK_WINDOW (window), "Scroll Test");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
       gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE, TRUE);
@@ -8490,7 +8379,6 @@ create_timeout_test (GtkWidget *widget)
       action_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
 
       gtk_window_set_title (GTK_WINDOW (window), "Timeout Test");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 0);
 
       label = gtk_label_new ("count: 0");
       g_object_set (label, "margin", 10, NULL);
@@ -9191,14 +9079,12 @@ create_main_window (void)
   gtk_widget_set_name (label, "testgtk-version-label");
 
   scrolled_window = gtk_scrolled_window_new (NULL, NULL);
-  gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 10);
   gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
                                  GTK_POLICY_NEVER, 
                                   GTK_POLICY_AUTOMATIC);
   gtk_box_pack_start (GTK_BOX (box1), scrolled_window, TRUE, TRUE);
 
   box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-  gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
   gtk_container_add (GTK_CONTAINER (scrolled_window), box2);
   gtk_container_set_focus_vadjustment (GTK_CONTAINER (box2),
                                       gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (scrolled_window)));
@@ -9221,7 +9107,6 @@ create_main_window (void)
   gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE);
 
   box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
-  gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
   gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE);
 
   button = gtk_button_new_with_mnemonic ("_Close");
index 1bc63e7be7246f05dcca693de00191411bc610d4..66e953170132bccaaff4be7844db0d272b3b2aca 100644 (file)
@@ -102,7 +102,6 @@ TestInterface interfaces[] = {
     "  <requires lib=\"gtk+\" version=\"2.18\"/>"
     "  <!-- interface-naming-policy project-wide -->"
     "  <object class=\"GtkWindow\" id=\"window\">"
-    "    <property name=\"border_width\">12</property>"
     "    <property name=\"default_width\">300</property>"
     "    <child>"
     "      <object class=\"GtkHPaned\" id=\"hpaned1\">"
@@ -633,7 +632,6 @@ TestInterface interfaces[] = {
     "    <child>"
     "      <object class=\"GtkFrame\" id=\"frame1\">"
     "        <property name=\"visible\">True</property>"
-    "        <property name=\"border_width\">8</property>"
     "        <property name=\"label_xalign\">0</property>"
     "        <child>"
     "          <object class=\"GtkAlignment\" id=\"alignment1\">"
@@ -670,7 +668,6 @@ TestInterface interfaces[] = {
     "  <requires lib=\"gtk+\" version=\"2.20\"/>"
     "  <!-- interface-naming-policy project-wide -->"
     "  <object class=\"GtkWindow\" id=\"window\">"
-    "    <property name=\"border_width\">8</property>"
     "    <property name=\"default_width\">600</property>"
     "    <child>"
     "      <object class=\"GtkHPaned\" id=\"hpaned1\">"
@@ -949,8 +946,6 @@ create_window (void)
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   vbox   = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
 
-  gtk_container_set_border_width (GTK_CONTAINER (window), 8);
-
   gtk_widget_show (vbox);
   gtk_container_add (GTK_CONTAINER (window), vbox);
 
index dec82da878201a6489c8655117aa55ca6b9d9166..94bd6b85c079100cee72b7ca35d190d7da391a15 100644 (file)
@@ -29,7 +29,6 @@ kinetic_scrolling (void)
   gint i;
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-  gtk_container_set_border_width (GTK_CONTAINER (window), 5);
   gtk_window_set_default_size (GTK_WINDOW (window), 400, 400);
   g_signal_connect (window, "delete_event",
                     G_CALLBACK (gtk_main_quit), NULL);
index 96b6891d131bb6563cf41a9aab2a760acb9b2bd1..f64cea88828590755c44949ad282a204ada868d6 100644 (file)
@@ -224,7 +224,6 @@ main (int argc, char *argv[])
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
-  gtk_container_set_border_width (GTK_CONTAINER (window), 12);
 
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
   gtk_container_add (GTK_CONTAINER (window), box);
index 670b9ee8d0fe67b3a46374a892e570a52120f1e3..d51133ed4a890baf7004cc7031429c5ec536c021 100644 (file)
@@ -52,7 +52,6 @@ int main (int argc, char **argv)
        gtk_window_resize (GTK_WINDOW (window), 400, 300);
 
        grid = gtk_grid_new ();
-       gtk_container_set_border_width (GTK_CONTAINER (grid), 12);
        gtk_grid_set_row_spacing (GTK_GRID (grid), 12);
        gtk_grid_set_column_spacing (GTK_GRID (grid), 12);
        gtk_container_add (GTK_CONTAINER (window), grid);
index 7ea85a15803788f009fc044352b6ee2c6e21deba..59d185611f13af90769b780aac2900c081d5fc3e 100644 (file)
@@ -597,14 +597,12 @@ main (int argc, char **argv)
   grid = gtk_grid_new ();
   gtk_grid_set_row_spacing (GTK_GRID (grid), 2);
   gtk_grid_set_column_spacing (GTK_GRID (grid), 2);
-  gtk_container_set_border_width (GTK_CONTAINER (grid), 2);
   gtk_container_add (GTK_CONTAINER (window), grid);
 
   frame = gtk_frame_new ("Menus and Toolbars");
   gtk_grid_attach (GTK_GRID (grid), frame, 0, 1, 2, 1);
 
   menu_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-  gtk_container_set_border_width (GTK_CONTAINER (menu_box), 2);
   gtk_container_add (GTK_CONTAINER (frame), menu_box);
 
   statusbar = gtk_statusbar_new ();
@@ -654,7 +652,6 @@ main (int argc, char **argv)
   gtk_grid_attach (GTK_GRID (grid), frame, 0, 0, 1, 1);
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 2);
   gtk_container_add (GTK_CONTAINER (frame), vbox);
 
   for (i = 0; i < G_N_ELEMENTS (merge_ids); i++)
index 5b8412b9984b01f1ca39a0699dc16a1f1b4b84d7..0b28b47e0982eebc5a7b617a98ad654dce6756c9 100644 (file)
@@ -69,14 +69,13 @@ make_selection_dialog (GdkScreen * screen,
                           "user_data", NULL,
                           "type", GTK_WINDOW_TOPLEVEL,
                           "title", "MultiDisplay Cut & Paste",
-                          "border_width", 10, NULL);
+                          NULL);
   g_signal_connect (window, "destroy",
                    G_CALLBACK (gtk_main_quit), NULL);
 
   content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
 
   vbox = g_object_new (GTK_TYPE_BOX,
-                        "border_width", 5,
                          "orientation", GTK_ORIENTATION_VERTICAL,
                         NULL);
   gtk_box_pack_start (GTK_BOX (content_area), vbox, FALSE, FALSE);
index be78ca6e4ca2879f928df553709320012e4f546c..436baabfe810f05b68eda2d150ade1e754b9c6fe 100644 (file)
@@ -188,7 +188,6 @@ create_notebook (gchar           **labels,
 
   gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebook), pos);
   gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook), TRUE);
-  gtk_container_set_border_width (GTK_CONTAINER (notebook), 6);
   gtk_notebook_set_group_name (GTK_NOTEBOOK (notebook), group);
 
   while (*labels)
@@ -233,7 +232,6 @@ create_notebook_non_dragable_content (gchar           **labels,
 
   gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebook), pos);
   gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook), TRUE);
-  gtk_container_set_border_width (GTK_CONTAINER (notebook), 6);
   gtk_notebook_set_group_name (GTK_NOTEBOOK (notebook), group);
 
   while (*labels)
@@ -275,7 +273,6 @@ create_notebook_with_notebooks (gchar           **labels,
 
   gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebook), pos);
   gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook), TRUE);
-  gtk_container_set_border_width (GTK_CONTAINER (notebook), 6);
   gtk_notebook_set_group_name (GTK_NOTEBOOK (notebook), group);
 
   while (*labels)
index 329973b09a52d9beca67bbe922329e0f4387e771..7da1bef897bdd0406440ae58eb884990e9b0bc96 100644 (file)
@@ -155,7 +155,6 @@ main (gint   argc,
   sw = gtk_scrolled_window_new (NULL, NULL);
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw),
                                        GTK_SHADOW_IN);
-  gtk_container_set_border_width (GTK_CONTAINER (sw), 12);
   gtk_container_add (GTK_CONTAINER (window), sw);
 
   g_signal_connect (window, "delete-event",
index 9941cb103b1021acf64da9af787c5ce4f961e831..cecc1770b1fed8d3b6b0bf51c92135ce37745e12 100644 (file)
@@ -69,7 +69,7 @@ add_row (GtkButton  *button,
 {
   GtkWidget *row;
 
-  row = g_object_new (GTK_TYPE_LIST_BOX_ROW, "border-width", 12, NULL);
+  row = g_object_new (GTK_TYPE_LIST_BOX_ROW, NULL);
   gtk_container_add (GTK_CONTAINER (row), gtk_label_new ("test"));
   gtk_container_add (GTK_CONTAINER (listbox), row);
 
@@ -101,8 +101,6 @@ scrollable_policy (void)
   hbox   = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
   vbox   = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
 
-  gtk_container_set_border_width (GTK_CONTAINER (window), 8);
-
   gtk_widget_show (vbox);
   gtk_widget_show (hbox);
   gtk_container_add (GTK_CONTAINER (window), hbox);
index 3fb0756baf63ab88d8d086280de1ec8e98e1ed91..7176985590e844a0c547b8d59d9b1704e04a36ee 100644 (file)
@@ -410,7 +410,6 @@ main (int argc, char *argv[])
 
   dialog = gtk_dialog_new ();
   gtk_widget_set_name (dialog, "Test Input");
-  gtk_container_set_border_width (GTK_CONTAINER(dialog), 0);
 
   g_signal_connect (dialog, "destroy",
                    G_CALLBACK (quit), NULL);
@@ -418,7 +417,6 @@ main (int argc, char *argv[])
   content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 10);
 
   gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE);
   gtk_widget_show (vbox);
index c348ba9abc1bb48c3abce70c0341a1646539fe1d..ee0a56984666d555d04cfdd5e0fcebb0524b8d33 100644 (file)
@@ -161,7 +161,6 @@ int main (int argc, char *argv[])
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_title (GTK_WINDOW (window), "GtkSwitch");
   gtk_window_set_default_size (GTK_WINDOW (window), 400, -1);
-  gtk_container_set_border_width (GTK_CONTAINER (window), 6);
   g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
   gtk_widget_show (window);
 
index dc1522baf0e1e35f6b00fc19929f2f2fc66fee10..d284b52cee44d5d7fb6fcce1e386775b5b5a450e 100644 (file)
@@ -503,11 +503,9 @@ main (gint argc, gchar **argv)
   gtk_grid_attach (GTK_GRID (grid), toolbar, 0, 0, 2, 1);
 
   hbox1 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
-  gtk_container_set_border_width (GTK_CONTAINER (hbox1), 5);
   gtk_grid_attach (GTK_GRID (grid), hbox1, 1, 1, 1, 1);
 
   hbox2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
-  gtk_container_set_border_width (GTK_CONTAINER (hbox2), 5);
   gtk_grid_attach (GTK_GRID (grid), hbox2, 1, 2, 1, 1);
 
   checkbox = gtk_check_button_new_with_mnemonic("_Vertical");
@@ -693,7 +691,6 @@ main (gint argc, gchar **argv)
   gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
 
   hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
-  gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
   gtk_widget_set_hexpand (hbox, TRUE);
   gtk_grid_attach (GTK_GRID (grid), hbox, 1, 4, 1, 1);
 
index 027bdacebdddfd79bd9a8303adcdca93e6a26741..4a8884d1eb7132f1c5434ac883bd545cd125218c 100644 (file)
@@ -282,7 +282,6 @@ main (int argc, char *argv[])
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_title (GTK_WINDOW (window), "Tooltips test");
-  gtk_container_set_border_width (GTK_CONTAINER (window), 10);
   g_signal_connect (window, "delete_event",
                    G_CALLBACK (gtk_main_quit), NULL);
 
index 67257d6aec74556c215a03f50f09c8e729f73c30..d6d3d77aa4a1c3d5c7e89fd5c0ad9580ac67bb0b 100644 (file)
@@ -765,7 +765,6 @@ main (int argc, char *argv[])
   g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
   gtk_window_set_default_size (GTK_WINDOW (window), 500, 300);
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
   gtk_container_add (GTK_CONTAINER (window), vbox);
 
   hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
index c152c0f1f24c8a2bf7f5cec7f85ff4d9046bf049..c3ade30ad5f30379fe6ea78679aa3ae515c7be33 100644 (file)
@@ -176,7 +176,6 @@ main (int argc, char **argv)
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_default_size (GTK_WINDOW (window), 640, 480);
   g_signal_connect (window, "delete-event", G_CALLBACK (gtk_main_quit), NULL);
-  gtk_container_set_border_width (GTK_CONTAINER (window), 5);
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
   gtk_container_add (GTK_CONTAINER (window), vbox);
index e7bab702926d024d1d13ababa839505f94bf5168..6c73ab656a06c18392bb0d8dfe86379281ddf65f 100644 (file)
@@ -134,7 +134,6 @@ main (int argc, char *argv[])
   gtk_window_set_title (GTK_WINDOW (window), "Reflow test");
   g_signal_connect (window, "destroy", gtk_main_quit, NULL);
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
   gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Incremental Reflow Test"), FALSE, FALSE);
   gtk_container_add (GTK_CONTAINER (window), vbox);
   scrolled_window = gtk_scrolled_window_new (NULL, NULL);
index f7607758a0b02bf4572a648ce468e0f88d6720e8..6841101a52cc3047dc9a2f19ec0ab436894c708c 100644 (file)
@@ -352,7 +352,6 @@ main (int argc, char *argv[])
   gtk_window_set_title (GTK_WINDOW (window), "Card planning sheet");
   g_signal_connect (window, "destroy", gtk_main_quit, NULL);
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
   gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Jonathan's Holiday Card Planning Sheet"), FALSE, FALSE);
   gtk_container_add (GTK_CONTAINER (window), vbox);
 
@@ -467,7 +466,6 @@ main (int argc, char *argv[])
   gtk_window_set_title (GTK_WINDOW (window), "Model");
   g_signal_connect (window, "destroy", gtk_main_quit, NULL);
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
   gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("The model revealed"), FALSE, FALSE);
   gtk_container_add (GTK_CONTAINER (window), vbox);
 
index 2bf02538a6602de4708b6765bba953bf8c07c887..8239ad26ec5c8febe93701e643a1029e3827b317 100644 (file)
@@ -122,7 +122,6 @@ main (int argc, char *argv[])
   gtk_window_set_title (GTK_WINDOW (window), "Words, words, words - Window 1");
   g_signal_connect (window, "destroy", gtk_main_quit, NULL);
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
   gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Jonathan and Kristian's list of cool words. (And Anders' cool list of numbers) \n\nThis is just a GtkTreeStore"), FALSE, FALSE);
   gtk_container_add (GTK_CONTAINER (window), vbox);
 
@@ -250,7 +249,6 @@ main (int argc, char *argv[])
                            "Words, words, words - window 2");
       g_signal_connect (window2, "destroy", gtk_main_quit, NULL);
       vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox2), 8);
       gtk_box_pack_start (GTK_BOX (vbox2), 
                          gtk_label_new ("Jonathan and Kristian's list of words.\n\nA GtkTreeModelSort wrapping the GtkTreeStore of window 1"),
                          FALSE, FALSE);
@@ -320,7 +318,6 @@ main (int argc, char *argv[])
                            "Words, words, words - Window 3");
       g_signal_connect (window3, "destroy", gtk_main_quit, NULL);
       vbox3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-      gtk_container_set_border_width (GTK_CONTAINER (vbox3), 8);
       gtk_box_pack_start (GTK_BOX (vbox3), 
                          gtk_label_new ("Jonathan and Kristian's list of words.\n\nA GtkTreeModelSort wrapping the GtkTreeModelSort of window 2"),
                          FALSE, FALSE);
index 42d3da14206a91d980fd1409639f1bbc8dff33c8..8a763990777211d68e61088eb00dc79d23a617d8 100644 (file)
@@ -84,7 +84,6 @@ create_window (void)
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_title (GTK_WINDOW (window), "Window size");
-  gtk_container_set_border_width (GTK_CONTAINER (window), 12);
   gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
 
   grid = gtk_grid_new ();
index dc7e9b5af4f542d9ce5a8afa102a6aa3c1f33ccc..f930a388db810fd5cc849d666da37c2284a5b4ce 100644 (file)
@@ -302,7 +302,6 @@ make_window (gint view_type)
     }
 
   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
-  gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
   gtk_window_set_default_size (GTK_WINDOW (window), 300, 350);
   scrolled_window = gtk_scrolled_window_new (NULL, NULL);
   switch (view_type)
index b4bba90bdf329e83d3b9481e168b92aa6e66d0fe..ca3e5d570863d54a4e6995a0b05bdcd7082cf1d6 100644 (file)
@@ -922,7 +922,6 @@ test_object_properties (void)
     "    <child>"
     "      <object class=\"GtkBox\" id=\"vbox\">"
     "        <property name=\"orientation\">vertical</property>"
-    "        <property name=\"border-width\">10</property>"
     "        <child>"
     "          <object class=\"GtkLabel\" id=\"label1\">"
     "            <property name=\"mnemonic-widget\">spinbutton1</property>"
@@ -979,10 +978,8 @@ test_children (void)
     "    <child internal-child=\"vbox\">"
     "      <object class=\"GtkBox\" id=\"dialog1-vbox\">"
     "        <property name=\"orientation\">vertical</property>"
-    "        <property name=\"border-width\">10</property>"
     "          <child internal-child=\"action_area\">"
     "            <object class=\"GtkButtonBox\" id=\"dialog1-action_area\">"
-    "              <property name=\"border-width\">20</property>"
     "              <property name=\"orientation\">horizontal</property>"
     "            </object>"
     "          </child>"
@@ -1022,7 +1019,6 @@ test_children (void)
   g_assert (GTK_IS_BOX (vbox));
   g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (vbox)) == GTK_ORIENTATION_VERTICAL);
   g_assert (strcmp (gtk_buildable_get_name (GTK_BUILDABLE (gtk_widget_get_parent (GTK_WIDGET (vbox)))), "dialog1") == 0);
-  g_assert (gtk_container_get_border_width (GTK_CONTAINER (vbox)) == 10);
   g_assert (strcmp (gtk_buildable_get_name (GTK_BUILDABLE (content_area)), "dialog1-vbox") == 0);
 
   action_area = gtk_builder_get_object (builder, "dialog1-action_area");
@@ -1033,7 +1029,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS
   g_assert (GTK_IS_BUTTON_BOX (action_area));
   g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (action_area)) == GTK_ORIENTATION_HORIZONTAL);
   g_assert (gtk_widget_get_parent (GTK_WIDGET (action_area)) != NULL);
-  g_assert (gtk_container_get_border_width (GTK_CONTAINER (action_area)) == 20);
   g_assert (dialog_action_area != NULL);
   g_assert (gtk_buildable_get_name (GTK_BUILDABLE (action_area)) != NULL);
   g_assert (strcmp (gtk_buildable_get_name (GTK_BUILDABLE (dialog_action_area)), "dialog1-action_area") == 0);
index b9b096c66e7bd0c2404b6723c271adc2bdfd7785..9d9b72b12ec6ca618e6106ff4739d80b6dedba36 100644 (file)
@@ -10,7 +10,6 @@
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
         <property name="spacing">5</property>
-        <property name="border-width">5</property>
         <child>
          <object class="GtkButton" id="button1">
            <property name="name">reference1</property>
index 1fc44e847fe9fd4a8a5bf20d36898e5a2a36b467..53dfab8e3da8b50b3af1cc41ebecaf1e5c390a7a 100644 (file)
@@ -10,7 +10,6 @@
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
         <property name="spacing">5</property>
-        <property name="border-width">5</property>
         <child>
          <object class="GtkButton" id="button1">
            <property name="name">button1</property>
index c4cf4fe13442e172fed1ded78d387d3054ba1028..bf16bc421f56f2c966889abd466f256e98b4c624 100644 (file)
@@ -10,7 +10,6 @@
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
         <property name="spacing">5</property>
-        <property name="border-width">5</property>
         <child>
          <object class="GtkButton" id="ref1">
            <property name="name">ref1</property>
index 7ee43110626d8d713bbb6141ca73937b3191cf11..a444f7434202d581fdd76234d87b9d1639e0daaa 100644 (file)
@@ -10,7 +10,6 @@
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
         <property name="spacing">5</property>
-        <property name="border-width">5</property>
         <child>
          <object class="GtkButton" id="button1">
            <property name="name">button1</property>
index 6cc188b8413ed7621ce46abaae6abc6fc4bf598c..1f22d326bb467b31d37756c16728ee65d0b425b0 100644 (file)
@@ -10,7 +10,6 @@
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
         <property name="spacing">5</property>
-        <property name="border-width">5</property>
         <child>
          <object class="GtkButton" id="button1">
            <property name="name">button1</property>
index 1c38d806cadcf48463d8305268f1cbd9c5188623..dbf7d7d4e6a116c84dfeb3dce5302c1e52e0e9bb 100644 (file)
@@ -18,7 +18,6 @@
             <child internal-child="content_area">
               <object class="GtkBox" id="infobar-content_area1">
                 <property name="can_focus">False</property>
-                <property name="border_width">8</property>
                 <property name="spacing">16</property>
                 <child>
                   <object class="GtkLabel" id="label1">
@@ -37,7 +36,6 @@
             <child internal-child="action_area">
               <object class="GtkButtonBox" id="infobar-action_area1">
                 <property name="can_focus">False</property>
-                <property name="border_width">0</property>
                 <property name="orientation">vertical</property>
                 <property name="spacing">6</property>
                 <property name="layout_style">end</property>
@@ -61,7 +59,6 @@
             <child internal-child="content_area">
               <object class="GtkBox" id="infobar-content_area2">
                 <property name="can_focus">False</property>
-                <property name="border_width">8</property>
                 <property name="spacing">16</property>
                 <child>
                   <object class="GtkLabel" id="label2">
@@ -80,7 +77,6 @@
             <child internal-child="action_area">
               <object class="GtkButtonBox" id="infobar-action_area2">
                 <property name="can_focus">False</property>
-                <property name="border_width">0</property>
                 <property name="orientation">vertical</property>
                 <property name="spacing">6</property>
                 <property name="layout_style">end</property>
             <child internal-child="content_area">
               <object class="GtkBox" id="infobar-content_area3">
                 <property name="can_focus">False</property>
-                <property name="border_width">8</property>
                 <property name="spacing">16</property>
                 <child>
                   <object class="GtkLabel" id="label3">
             <child internal-child="action_area">
               <object class="GtkButtonBox" id="infobar-action_area3">
                 <property name="can_focus">False</property>
-                <property name="border_width">0</property>
                 <property name="orientation">vertical</property>
                 <property name="spacing">6</property>
                 <property name="layout_style">end</property>
             <child internal-child="content_area">
               <object class="GtkBox" id="infobar-content_area4">
                 <property name="can_focus">False</property>
-                <property name="border_width">8</property>
                 <property name="spacing">16</property>
                 <child>
                   <object class="GtkLabel" id="label4">
             <child internal-child="action_area">
               <object class="GtkButtonBox" id="infobar-action_area4">
                 <property name="can_focus">False</property>
-                <property name="border_width">0</property>
                 <property name="orientation">vertical</property>
                 <property name="spacing">6</property>
                 <property name="layout_style">end</property>
             <child internal-child="content_area">
               <object class="GtkBox" id="infobar-content_area5">
                 <property name="can_focus">False</property>
-                <property name="border_width">8</property>
                 <property name="spacing">16</property>
                 <child>
                   <object class="GtkLabel" id="label5">
             <child internal-child="action_area">
               <object class="GtkButtonBox" id="infobar-action_area5">
                 <property name="can_focus">False</property>
-                <property name="border_width">0</property>
                 <property name="orientation">vertical</property>
                 <property name="spacing">6</property>
                 <property name="layout_style">end</property>
index 6f7381c87828de15a5c3331c4d4f40a9a435a11d..a85e7228ec0e597c9ab9b5df0a4976d8b88db309 100644 (file)
@@ -3,7 +3,6 @@
   <!-- interface-requires gtk+ 3.0 -->
   <object class="GtkMessageDialog" id="messagedialog1">
     <property name="can_focus">False</property>
-    <property name="border_width">5</property>
     <property name="type">popup</property>
     <property name="type_hint">dialog</property>
     <property name="skip_taskbar_hint">True</property>
index ed1767bbb06f535c7704442fa37ad4bd30942ec7..7c9be82bdbd218a8454ed13347bc94a8aa87ceb0 100644 (file)
@@ -3,7 +3,6 @@
   <!-- interface-requires gtk+ 3.0 -->
   <object class="GtkMessageDialog" id="messagedialog1">
     <property name="can_focus">False</property>
-    <property name="border_width">5</property>
     <property name="type">popup</property>
     <property name="type_hint">dialog</property>
     <property name="skip_taskbar_hint">True</property>
index 0d6af7ee1713993e985935b9c3adf235826607bc..4bb19420c4e269c048a8e2a589fef23a195c5d7a 100644 (file)
@@ -6,7 +6,6 @@
     <property name="type">popup</property>
     <child>
       <object class="GtkBox" id="box1">
-        <property name="border-width">20</property>
         <property name="visible">True</property>
         <property name="can_focus">False</property>
         <child>
index 51f1e08d4eecaeb14b3519219b6f2183c26b986f..60d234800fd609f9bfeaaf0e6ff8f9eaa5685312 100644 (file)
@@ -4,7 +4,6 @@
   <object class="GtkWindow" id="window_information_collection">
     <property name="can_focus">False</property>
     <property name="type">popup</property>
-    <property name="border-width">20</property>
     <child>
       <object class="GtkLabel" id="label1">
         <property name="visible">True</property>
index 1675a5e053c814100c57827cfa94245dcb53a621..e5eeb3b24de6c9bc3b6da34c3f5da1731ec0915f 100644 (file)
@@ -2,7 +2,6 @@
 <interface>
   <object class="GtkDialog" id="window1">
     <property name="can_focus">False</property>
-    <property name="border_width">5</property>
     <property name="title" translatable="yes">Dubstep</property>
     <property name="type_hint">dialog</property>
     <property name="resizable">False</property>
index f29766a368278d2c34166f7fe94328496e49270b..f23ca450aa65d6d0bfb42053dc268712133d31a1 100644 (file)
@@ -2,7 +2,6 @@
 <interface>
   <object class="GtkDialog" id="window1">
     <property name="can_focus">False</property>
-    <property name="border_width">5</property>
     <property name="title" translatable="yes">Dubstep</property>
     <property name="type_hint">dialog</property>
     <property name="resizable">False</property>